Skip to content

Commit

Permalink
Fix sphinx-doc#9944 (LaTeX writer visit_desc_content())
Browse files Browse the repository at this point in the history
The "~" was added 14 years ago at 3761223

Seems not to be needed anymore and causes extra vertical space in some
circumstances.
t
  • Loading branch information
jfbu committed Dec 5, 2021
1 parent 3ae124f commit 910e6e3
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 @@ -18,6 +18,7 @@ Bugs fixed

* #9917: C and C++, parse fundamental types no matter the order of simple type
specifiers.
* #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 910e6e3

Please sign in to comment.