Fix latex markup for line blocks in tables.

This commit is contained in:
Georg Brandl 2008-11-23 12:22:43 +01:00
parent e8cfdda7a2
commit df7e93dcf1
2 changed files with 6 additions and 1 deletions

View File

@ -163,6 +163,8 @@ Bugs fixed
* Fix small problems in HTML help index generation.
* Fix LaTeX output for line blocks in tables.
* Fix "illegal unit" error when using pixel image widths/heights.
* Support table captions in LaTeX output.

View File

@ -1038,7 +1038,10 @@ class LaTeXTranslator(nodes.NodeVisitor):
# no output in this line -- add a nonbreaking space, else the
# \\ command will give an error
self.body.append('~')
self.body.append('\\\\\n')
if self.table is not None:
self.body.append('\\newline\n')
else:
self.body.append('\\\\\n')
def visit_block_quote(self, node):
# If the block quote contains a single object and that object