alex-rudakov / sphinx-argparse

Sphinx extension that automatically document argparse commands and options
MIT License
49 stars 40 forks source link

Long options wrapped after the double dash #83

Open volans- opened 7 years ago

volans- commented 7 years ago

In the HTML output some long options are wrapped exactly at the double dash, making quite hard to read the table. As an example I got:

-c, --
config

I'm using the Read the Docs theme and I've applied the CSS fix for white-space as suggested. Have you considered the possibility to replace those specific dashes with non-breaking ones (‑) ?

Versions:

docutils==0.14
Sphinx==1.6.4
sphinx-argparse==0.2.1
sphinx-rtd-theme==0.2.4
joaoe commented 6 years ago

Duplicate of https://github.com/ribozz/sphinx-argparse/issues/94