mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #2962 from kakkojc/fix_longtable_label_bug
Fix label missing bug in longtable environment
This commit is contained in:
commit
96362154d2
@ -1029,6 +1029,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.body.append('}')
|
||||
for id in self.pop_hyperlink_ids('table'):
|
||||
self.body.append(self.hypertarget(id, anchor=False))
|
||||
if node['ids']:
|
||||
self.body.append(self.hypertarget(node['ids'][0], anchor=False))
|
||||
self.body.append(u'\\\\\n')
|
||||
if self.table.longtable:
|
||||
self.body.append('\\hline\n')
|
||||
|
Loading…
Reference in New Issue
Block a user