mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[texinfo] Avoid creating some unnecessary garbage when assembling the final document.
This commit is contained in:
parent
06359e4d39
commit
a18ec10c34
@ -180,7 +180,8 @@ class TexinfoTranslator(nodes.NodeVisitor):
|
||||
r = self.referenced_ids.pop()
|
||||
if r not in self.written_ids:
|
||||
self.body.append('@anchor{%s}@w{%s}\n' % (r, ' ' * 30))
|
||||
self.fragment = ''.join(self.body).strip() + '\n'
|
||||
self.ensure_eol()
|
||||
self.fragment = ''.join(self.body)
|
||||
self.elements['body'] = self.fragment
|
||||
self.output = TEMPLATE % self.elements
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user