Merge branch 'stable'

This commit is contained in:
Takeshi KOMIYA 2016-09-29 00:23:50 +09:00
commit 984874fc20
16 changed files with 11 additions and 7 deletions

View File

@ -183,6 +183,8 @@ Bugs fixed
* #2931: code-block directive with same :caption: causes warning of duplicate * #2931: code-block directive with same :caption: causes warning of duplicate
target. Now `code-block` and `literalinclude` does not define hyperlink target. Now `code-block` and `literalinclude` does not define hyperlink
target using its caption automatially. target using its caption automatially.
* #2962: latex: missing label of longtable
* #2968: autodoc: show-inheritance option breaks docstrings
Release 1.4.6 (released Aug 20, 2016) Release 1.4.6 (released Aug 20, 2016)
===================================== =====================================

View File

@ -1025,6 +1025,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.body.append('}') self.body.append('}')
for id in self.pop_hyperlink_ids('table'): for id in self.pop_hyperlink_ids('table'):
self.body.append(self.hypertarget(id, anchor=False)) 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') self.body.append(u'\\\\\n')
if self.table.longtable: if self.table.longtable:
self.body.append('\\hline\n') self.body.append('\\hline\n')