diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-12-11 17:05:33 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-12-11 17:05:36 +0300 |
commit | 8e23b03263ce731a70bd3ddee99eead73a47663d (patch) | |
tree | 823790d629a7c67509d1dc77276b748fec6cb657 /sphinx/writers | |
parent | 5563f672eccd3aa93c304ba6bac04ee2360b8c4e (diff) |
refactor: texinfo: Remove CR char from output
The CR character was added for readability of output. But it makes the
texinfo writer a bit complicated. This removes it from output to keep
our code simple (reducing conditions).
Diffstat (limited to 'sphinx/writers')
-rw-r--r-- | sphinx/writers/texinfo.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py index 44842f754..9a281dc9a 100644 --- a/sphinx/writers/texinfo.py +++ b/sphinx/writers/texinfo.py @@ -765,12 +765,10 @@ class TexinfoTranslator(SphinxTranslator): # -- Blocks def visit_paragraph(self, node: Element) -> None: - if not self.in_footnote: - self.body.append('\n') + self.body.append('\n') def depart_paragraph(self, node: Element) -> None: - if not self.in_footnote: - self.body.append('\n') + self.body.append('\n') def visit_block_quote(self, node: Element) -> None: self.body.append('\n@quotation\n') |