Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #9944 (LaTeX writer visit_desc_content()) #9945

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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