mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #961: Fix LaTeX output for triple quotes in code snippets.
This commit is contained in:
parent
0237940007
commit
c18479a772
1
CHANGES
1
CHANGES
@ -196,6 +196,7 @@ Bugs fixed
|
|||||||
* #1008: Fix test failures with Python 3.3.
|
* #1008: Fix test failures with Python 3.3.
|
||||||
* #976: Fix gettext does not extract index entries.
|
* #976: Fix gettext does not extract index entries.
|
||||||
* PR#72: #975: Fix gettext not extracting definition terms before docutils 0.10.
|
* 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.
|
* #958: Do not preserve ``environment.pickle`` after a failed build.
|
||||||
* #955: Fix i18n transformation.
|
* #955: Fix i18n transformation.
|
||||||
* #940: Fix gettext does not extract figure caption.
|
* #940: Fix gettext does not extract figure caption.
|
||||||
|
@ -1494,6 +1494,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
text = text.replace(u'\n', u'~\\\\\n').replace(u' ', u'~')
|
text = text.replace(u'\n', u'~\\\\\n').replace(u' ', u'~')
|
||||||
if self.no_contractions:
|
if self.no_contractions:
|
||||||
text = text.replace('--', u'-{-}')
|
text = text.replace('--', u'-{-}')
|
||||||
|
text = text.replace("''", u"'{'}")
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def encode_uri(self, text):
|
def encode_uri(self, text):
|
||||||
|
Loading…
Reference in New Issue
Block a user