Closes #1126: Fix double-hyphen to en-dash conversion in wrong places such as

command-line option names in LaTeX.
This commit is contained in:
Georg Brandl committed 2013-03-30 12:00:51 +01:00
1 parent 6608b58732
commit 4f78f0d598
2 files changed
+4

No files matched your search

+2
View File
@@ -158,6 +158,8 @@ Bugs fixed
* Fix text writer not handling visit_legend for figure directive contents.
* Fix text builder not respecting wide/fullwidth characters: title underline
width, table layout width and text wrap width.
* #1126: Fix double-hyphen to en-dash conversion in wrong places such as
command-line option names in LaTeX.
* #1117: Handle .pyx files in sphinx-apidoc.
* #1111: Fix failure to find uppercase words in search when
:confval:`html_search_language` is 'ja'. Thanks to Tomo Saito.
+2
View File
@@ -562,10 +562,12 @@ class LaTeXTranslator(nodes.NodeVisitor):
def visit_desc_name(self, node):
self.body.append(r'\bfcode{')
self.no_contractions += 1
self.literal_whitespace += 1
def depart_desc_name(self, node):
self.body.append('}')
self.literal_whitespace -= 1
self.no_contractions -= 1
def visit_desc_parameterlist(self, node):
# close name, open parameterlist