Closes #1132: Fix LaTeX table output for multi-row cells in the first column.

This commit is contained in:
Georg Brandl 2013-03-30 12:23:04 +01:00
parent 4f78f0d598
commit cef883f8ae
2 changed files with 4 additions and 2 deletions

View File

@ -158,6 +158,7 @@ Bugs fixed
* Fix text writer not handling visit_legend for figure directive contents. * Fix text writer not handling visit_legend for figure directive contents.
* Fix text builder not respecting wide/fullwidth characters: title underline * Fix text builder not respecting wide/fullwidth characters: title underline
width, table layout width and text wrap width. width, table layout width and text wrap width.
* #1132: Fix LaTeX table output for multi-row cells in the first column.
* #1126: Fix double-hyphen to en-dash conversion in wrong places such as * #1126: Fix double-hyphen to en-dash conversion in wrong places such as
command-line option names in LaTeX. command-line option names in LaTeX.
* #1117: Handle .pyx files in sphinx-apidoc. * #1117: Handle .pyx files in sphinx-apidoc.

View File

@ -759,10 +759,11 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.table.rowcount += 1 self.table.rowcount += 1
def visit_entry(self, node): def visit_entry(self, node):
if self.remember_multirow.get(0, 0) > 1:
self.body.append(' & ')
if self.table.col > 0: if self.table.col > 0:
self.body.append(' & ') self.body.append(' & ')
elif self.remember_multirow.get(1, 0) > 1:
self.remember_multirow[1] -= 1
self.body.append(' & ')
self.table.col += 1 self.table.col += 1
context = '' context = ''
if 'morerows' in node: if 'morerows' in node: