Skip to content

Commit

Permalink
Merge pull request #9946 from jfbu/9949_latex
Browse files Browse the repository at this point in the history
Fix #9944 (LaTeX writer visit_desc_content())
  • Loading branch information
jfbu committed Dec 9, 2021
2 parents e05741e + e1b2936 commit 7d6d562
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -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
--------
Expand Down
4 changes: 1 addition & 3 deletions sphinx/writers/latex.py
Expand Up @@ -757,9 +757,7 @@ def depart_desc_signature_line(self, node: Element) -> None:
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
Expand Down

0 comments on commit 7d6d562

Please sign in to comment.