Replace two self.body.append by one in latex writer

This commit is contained in:
jfbu 2017-12-11 19:22:57 +01:00
parent e583e5b0f3
commit 314f5291d4

View File

@ -2310,8 +2310,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
hlcode += '\\end{sphinxVerbatimintable}'
else:
hlcode += '\\end{sphinxVerbatim}'
self.body.append('\n' + hllines)
self.body.append('\n' + hlcode + '\n')
self.body.append('\n' + hllines + '\n' + hlcode + '\n')
if ids:
self.body.append('\\let\\sphinxLiteralBlockLabel\\empty\n')
raise nodes.SkipNode