diff --git a/CHANGES b/CHANGES index b7895fe6f..2c41eb1f8 100644 --- a/CHANGES +++ b/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 -------- diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 3f032e616..6f7e20241 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -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