mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1871: fix for latex writer with multirow and 1-column tables.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user