Fix #506: block table alignment problem.

This commit is contained in:
Georg Brandl 2011-09-22 14:54:15 +02:00
parent f250397f77
commit 806cadaa01

View File

@ -629,7 +629,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.table.longtable = True
self.body = self._body
if not self.table.longtable and self.table.caption is not None:
self.body.append(u'\n\\begin{threeparttable}\n'
self.body.append(u'\n\n\\begin{threeparttable}\n'
u'\\capstart\\caption{%s}\n' % self.table.caption)
if self.table.longtable:
self.body.append('\n\\begin{longtable}')