mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Properly escape ``quote'' characters in Texinfo.
This commit is contained in:
parent
7147131145
commit
10e0fb8ad9
@ -319,6 +319,9 @@ class TexinfoTranslator(nodes.NodeVisitor):
|
||||
s = s.replace('@', '@@')
|
||||
s = s.replace('{', '@{')
|
||||
s = s.replace('}', '@}')
|
||||
# prevent `` and '' quote conversion
|
||||
s = s.replace('``', "`@w{`}")
|
||||
s = s.replace("''", "'@w{'}")
|
||||
# prevent "--" from being converted to an "em dash"
|
||||
# s = s.replace('-', '@w{-}')
|
||||
return s
|
||||
|
Loading…
Reference in New Issue
Block a user