Closes #961: Fix LaTeX output for triple quotes in code snippets.

This commit is contained in:
Georg Brandl 2013-03-30 12:49:59 +01:00
parent 0237940007
commit c18479a772
2 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,7 @@ Bugs fixed
* #1008: Fix test failures with Python 3.3.
* #976: Fix gettext does not extract index entries.
* PR#72: #975: Fix gettext not extracting definition terms before docutils 0.10.
* #961: Fix LaTeX output for triple quotes in code snippets.
* #958: Do not preserve ``environment.pickle`` after a failed build.
* #955: Fix i18n transformation.
* #940: Fix gettext does not extract figure caption.

View File

@ -1494,6 +1494,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
text = text.replace(u'\n', u'~\\\\\n').replace(u' ', u'~')
if self.no_contractions:
text = text.replace('--', u'-{-}')
text = text.replace("''", u"'{'}")
return text
def encode_uri(self, text):