mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove HTML5Translator.should_be_compact_paragraph() (unused)
It was only copied from HTML4 translator, never used.
This commit is contained in:
parent
7a0e205ebd
commit
4eb1a999a7
@ -492,18 +492,6 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
|
||||
# type: (addnodes.centered) -> None
|
||||
self.body.append('</strong></p>')
|
||||
|
||||
# overwritten
|
||||
def should_be_compact_paragraph(self, node):
|
||||
# type: (nodes.Node) -> bool
|
||||
"""Determine if the <p> tags around paragraph can be omitted."""
|
||||
if isinstance(node.parent, addnodes.desc_content):
|
||||
# Never compact desc_content items.
|
||||
return False
|
||||
if isinstance(node.parent, addnodes.versionmodified):
|
||||
# Never compact versionmodified nodes.
|
||||
return False
|
||||
return super(HTML5Translator, self).should_be_compact_paragraph(node)
|
||||
|
||||
def visit_compact_paragraph(self, node):
|
||||
# type: (addnodes.compact_paragraph) -> None
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user