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:
jfbu 2021-12-05 22:03:34 +01:00
parent 2b60f75963
commit e1b2936892
2 changed files with 2 additions and 3 deletions

View File

@ -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
--------

View File

@ -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