Fix leading space in LaTeX table header cells.

This commit is contained in:
Georg Brandl 2013-03-30 12:30:36 +01:00
parent cef883f8ae
commit 1f79ba7e74
2 changed files with 2 additions and 1 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.
* Fix leading space in LaTeX table header cells.
* #1132: Fix LaTeX table output for multi-row cells in the first column. * #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.

View File

@ -782,7 +782,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.body.append('}{l|}{') self.body.append('}{l|}{')
context += '}' context += '}'
if isinstance(node.parent.parent, nodes.thead): if isinstance(node.parent.parent, nodes.thead):
self.body.append('\\textbf{') self.body.append('\\textbf{\\relax ')
context += '}' context += '}'
if self.remember_multirow.get(self.table.col + 1, 0) > 1: if self.remember_multirow.get(self.table.col + 1, 0) > 1:
self.remember_multirow[self.table.col + 1] -= 1 self.remember_multirow[self.table.col + 1] -= 1