Skip to content

Commit

Permalink
add whitespace to option choice separator to allow wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
timabrmsn authored and stephenfin committed Jul 23, 2020
1 parent 43ae645 commit 6b928ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx_click/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _write_opts(opts):
)

if isinstance(opt.type, click.Choice):
extras.append(':options: %s' % '|'.join(opt.type.choices))
extras.append(':options: %s' % ' | '.join(opt.type.choices))

if extras:
if out:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def foobar(bar):
A sample option with choices
:options: Option1|Option2
:options: Option1 | Option2
.. rubric:: Arguments
Expand Down

0 comments on commit 6b928ee

Please sign in to comment.