0

I'm having a small aesthetic problem with sphinx, I want "--" to appear in the document, but it keeps coming out as "-".

Example source:

remove_user (--id|--username|--email) <user_id> <source_account>
---------------
**To remove a User (and any devices associated with them) from a specific account, the following command can be used:**

* pcli.py remove_user (--id|--username|--email) <user_id> <source_account>

How it looks:

screenshot of sphinx documentation

bad_coder
  • 11,289
  • 20
  • 44
  • 72
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
  • 1
    See this: http://stackoverflow.com/questions/15258831/how-to-handle-two-dashes-in-rest – YS-L Feb 05 '14 at 10:53

1 Answers1

1

Basically it's due to the html_use_smartypants option which is turned on by default (see doc). In your case you would want to turn it off.

In conf.py, find the line

#html_use_smartypants = True

And change it to

html_use_smartypants = False

EDIT:

html_use_smartypants has been deprecated and smartquotes should be used instead.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
YS-L
  • 14,358
  • 3
  • 47
  • 58