Fix the caption of table are rendered as invalid HTML (refs: #3287)

This commit is contained in:
Takeshi KOMIYA 2017-01-01 20:47:25 +09:00
parent 25a3451a4e
commit 60b7bfdfc2
2 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ Bugs fixed
* #3261: ``latex_use_parts`` makes sphinx crash
* The warning type ``misc.highlighting_failure`` does not work
* #3294: ``add_latex_package()`` make crashes non-LaTeX builders
* The caption of table are rendered as invalid HTML (refs: #3287)
Release 1.5.1 (released Dec 13, 2016)

View File

@ -359,6 +359,8 @@ class HTMLTranslator(BaseTranslator):
elif isinstance(node.parent, nodes.table):
self.body.append('</span>')
self.add_permalink_ref(node.parent, _('Permalink to this table'))
elif isinstance(node.parent, nodes.table):
self.body.append('</span>')
BaseTranslator.depart_title(self, node)