Skip to content

Commit

Permalink
Fix #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 9, 2021
1 parent 2b60f75 commit e1b2936
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 e1b2936

Please sign in to comment.