Commits

Jon Waltman committed c3d7018

Properly escape ``quote'' characters in Texinfo.

  • Participants
  • Parent commits b38dfdd

Comments (0)

Files changed (1)

File sphinx/writers/texinfo.py

         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