mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
doc: Disable SmartyPants in generated manual pages
By default, Sphinx tries to pre-process text through SmartyPants, which attempts to convert ASCII quotes and dashes to Unicode characters. Unfortunately, this mangles technical text such as command lines. For instance, this excerpt from notmuch-tag.rst: **notmuch** **tag** **--batch** [--input=<*filename*>] got turned into: notmuch tag –batch [–input=<filename>] That's an en-dash and an em-dash respectively. Not only are these characters visually confusing and could easily be mistaken for a single dash, copying and pasting such command lines into a terminal is doomed to result in incomprehensible error messages. * doc/conf.py: Disable SmartyPants.
This commit is contained in:
parent
cb5253578d
commit
938ec0f80c
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ html_static_path = []
|
||||||
# Output file base name for HTML help builder.
|
# Output file base name for HTML help builder.
|
||||||
htmlhelp_basename = 'notmuchdoc'
|
htmlhelp_basename = 'notmuchdoc'
|
||||||
|
|
||||||
|
# Disable SmartyPants, as it mangles command lines.
|
||||||
|
# Despite the name, this actually affects manual pages as well.
|
||||||
|
html_use_smartypants = False
|
||||||
|
|
||||||
# -- Options for manual page output ---------------------------------------
|
# -- Options for manual page output ---------------------------------------
|
||||||
|
|
||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
|
|
Loading…
Reference in a new issue