diff --git a/CHANGES b/CHANGES index 0d1edc97f..ed62a593b 100644 --- a/CHANGES +++ b/CHANGES @@ -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. diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index f02a07511..dcb52d507 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -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):