Closes #1871: fix for latex writer with multirow and 1-column tables.

This commit is contained in:
Georg Brandl
2015-07-24 16:30:48 +02:00
parent 5d30bc635b
commit c7bee16c8a
2 changed files with 8 additions and 1 deletions

View File

@@ -874,6 +874,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.body.append('\\\\\n')
if any(self.remember_multirow.values()):
linestart = 1
col = self.table.colcount
for col in range(1, self.table.col + 1):
if self.remember_multirow.get(col):
if linestart != col:

View File

@@ -187,7 +187,7 @@ Tables
| 2 | Empty cells: | |
+----+----------------+----+
Table with multirow and multicol:
Tables with multirow and multicol:
.. only:: latex
@@ -199,6 +199,12 @@ Table with multirow and multicol:
| x | multi-column cell | x |
+----+---------------------+----+
+----+
| 1 |
+ +
| |
+----+
Figures
-------