Fix #6793: texinfo: Code examples broken following "sidebar"

This commit is contained in:
Takeshi KOMIYA
2019-11-06 00:56:08 +09:00
parent 8dbb799cb1
commit 27f0828420
2 changed files with 2 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ Bugs fixed
* #5070: epub: Wrong internal href fragment links
* #6712: Allow not to install sphinx.testing as runtime (mainly for ALT Linux)
* #6741: html: search result was broken with empty :confval:`html_file_suffix`
* #6793: texinfo: Code examples broken following "sidebar"
Testing
--------

View File

@@ -1284,6 +1284,7 @@ class TexinfoTranslator(SphinxTranslator):
title = cast(nodes.title, node[0])
self.visit_rubric(title)
self.body.append('%s\n' % self.escape(title.astext()))
self.depart_rubric(title)
def depart_topic(self, node):
# type: (nodes.Element) -> None