mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refactor: Use py3 style super()
This commit is contained in:
parent
b691fa804d
commit
ef2d16d68a
@ -473,14 +473,14 @@ class ManualPageTranslator(SphinxTranslator, BaseTranslator):
|
||||
if isinstance(node.parent, nodes.container) and node.parent.get('literal_block'):
|
||||
self.body.append('.sp\n')
|
||||
else:
|
||||
BaseTranslator.visit_caption(self, node)
|
||||
super().visit_caption(node)
|
||||
|
||||
def depart_caption(self, node):
|
||||
# type: (nodes.Element) -> None
|
||||
if isinstance(node.parent, nodes.container) and node.parent.get('literal_block'):
|
||||
self.body.append('\n')
|
||||
else:
|
||||
BaseTranslator.depart_caption(self, node)
|
||||
super().depart_caption(node)
|
||||
|
||||
# overwritten: handle section titles better than in 0.6 release
|
||||
def visit_title(self, node):
|
||||
|
Loading…
Reference in New Issue
Block a user