Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfbu <2589111+jfbu@users.noreply.github.com>2021-12-06 00:03:34 +0300
committerjfbu <2589111+jfbu@users.noreply.github.com>2021-12-09 20:18:08 +0300
commite1b2936892677ecf7c7a80a64d9552ae4aba7af6 (patch)
treebb26a4ef9ec4fe0a24d1041a40c6236d5b78eb22 /sphinx/writers
parent2b60f7596371510e3720a997a75f878b042832fc (diff)
Fix #9944 (LaTeX writer visit_desc_content())
The "~" was added 14 years ago at 3761223d85b16 Seems not to be needed anymore and causes extra vertical space in some circumstances. t
Diffstat (limited to 'sphinx/writers')
-rw-r--r--sphinx/writers/latex.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 3f032e616..6f7e20241 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -757,9 +757,7 @@ class LaTeXTranslator(SphinxTranslator):
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