#558: Fix longtables with captions in LaTeX output.

This commit is contained in:
Georg Brandl
2011-01-15 11:40:48 +01:00
parent d7c021bc5f
commit 25c61f0748
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
Release 1.0.7 (in development)
==============================
* #558: Fix longtables with captions in LaTeX output.
* Make token references work as hyperlinks again in LaTeX output.
* #572: Show warnings by default when reference labels cannot be

View File

@@ -658,8 +658,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
else:
self.body.append('{|' + ('L|' * self.table.colcount) + '}\n')
if self.table.longtable and self.table.caption is not None:
self.body.append(u'\\capstart\\caption{%s} \\\\\n' %
self.table.caption)
self.body.append(u'\\caption{%s} \\\\\n' % self.table.caption)
if self.table.caption is not None:
for id in self.next_table_ids:
self.body.append(self.hypertarget(id, anchor=False))