[texinfo] Avoid creating some unnecessary garbage when assembling the final document.

This commit is contained in:
Jonathan Waltman 2013-02-19 04:20:13 -06:00
parent 06359e4d39
commit a18ec10c34

View File

@ -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