mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #9944 (LaTeX writer visit_desc_content())
The "~" was added 14 years ago at 3761223d85
Seems not to be needed anymore and causes extra vertical space in some
circumstances.
t
This commit is contained in:
parent
2b60f75963
commit
e1b2936892
1
CHANGES
1
CHANGES
@ -38,6 +38,7 @@ Bugs fixed
|
|||||||
* #9909: HTML, prevent line-wrapping in literal text.
|
* #9909: HTML, prevent line-wrapping in literal text.
|
||||||
* #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of
|
* #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of
|
||||||
inline and parsed literals
|
inline and parsed literals
|
||||||
|
* #9944: LaTeX: extra vertical whitespace for some nested declarations
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -757,9 +757,7 @@ class LaTeXTranslator(SphinxTranslator):
|
|||||||
self._depart_signature_line(node)
|
self._depart_signature_line(node)
|
||||||
|
|
||||||
def visit_desc_content(self, node: Element) -> None:
|
def visit_desc_content(self, node: Element) -> None:
|
||||||
if node.children and not isinstance(node.children[0], nodes.paragraph):
|
pass
|
||||||
# avoid empty desc environment which causes a formatting bug
|
|
||||||
self.body.append('~')
|
|
||||||
|
|
||||||
def depart_desc_content(self, node: Element) -> None:
|
def depart_desc_content(self, node: Element) -> None:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user