Closed hoodmane closed 6 months ago
There's still a CRITICAL: Unexpected section title or transition
if a multiple
option has an empty list default.
You can rebase this now that #136 is merged too.
Thanks for maintaining sphinx-click @stephenfin!
Summary
Before this patch, string defaults are formatted without quotes around them. However, if the default is a tuple or list of strings, quotes will be included:
This is a slightly annoying inconsistency, and leads to potential for confusion between
default="0"
anddefault=0
. Most bothersome is that in the case of an empty string we get:Which makes docutils angry:
This fixes the trouble by formatting the repr of the default.
On top of #136.
Tasks
reno
)tox
)