1. Joel Wurtz
  2. sphinx

Commits

Jon Waltman  committed c3d7018

Properly escape ``quote'' characters in Texinfo.

  • Participants
  • Parent commits b38dfdd
  • Branches default

Comments (0)

Files changed (1)

File sphinx/writers/texinfo.py

View file
  • Ignore whitespace
         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