mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #9944 (LaTeX writer visit_desc_content())
The "~" was added 14 years ago at 3761223d85
Seems not to be needed anymore and causes extra vertical space in some
circumstances.
t
This commit is contained in:
parent
2b60f75963
commit
e1b2936892
1
CHANGES
1
CHANGES
@ -38,6 +38,7 @@ Bugs fixed
|
||||
* #9909: HTML, prevent line-wrapping in literal text.
|
||||
* #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of
|
||||
inline and parsed literals
|
||||
* #9944: LaTeX: extra vertical whitespace for some nested declarations
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -757,9 +757,7 @@ class LaTeXTranslator(SphinxTranslator):
|
||||
self._depart_signature_line(node)
|
||||
|
||||
def visit_desc_content(self, node: Element) -> None:
|
||||
if node.children and not isinstance(node.children[0], nodes.paragraph):
|
||||
# avoid empty desc environment which causes a formatting bug
|
||||
self.body.append('~')
|
||||
pass
|
||||
|
||||
def depart_desc_content(self, node: Element) -> None:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user