mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -05:00
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:
1 parent
6608b58732
commit
4f78f0d598
2 files changed
+4
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user