summaryrefslogtreecommitdiff
path: root/sphinx/writers/latex.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-15 11:40:48 +0100
committerGeorg Brandl <georg@python.org>2011-01-15 11:40:48 +0100
commit25c61f074852cdb0a88c2d8a1edc5e5051a07921 (patch)
tree8e6c90fd55c88c154273c824162d2ce604b22655 /sphinx/writers/latex.py
parentd7c021bc5fdf01a5c772ea618d23d53ed5d24f75 (diff)
downloadsphinx-git-25c61f074852cdb0a88c2d8a1edc5e5051a07921.tar.gz
#558: Fix longtables with captions in LaTeX output.
Diffstat (limited to 'sphinx/writers/latex.py')
-rw-r--r--sphinx/writers/latex.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 09a34ecb6..dd0c2665a 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -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))