1
--- Sphinx-0.6.5-py2.6.egg_FILES/sphinx/writers/html.py 2010-01-02 00:43:38.000000000 +0200
2
+++ Sphinx-0.6.5-py2.6.egg_FILES/sphinx/writers/html.py 2010-05-27 02:24:33.203418028 +0300
4
from docutils import nodes
5
from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator
7
+from sphinx import addnodes
8
from sphinx.locale import admonitionlabels, versionlabels
9
from sphinx.util.smartypants import sphinx_smarty_pants
11
@@ -284,6 +285,14 @@ class HTMLTranslator(BaseTranslator):
12
def depart_centered(self, node):
13
self.body.append('</strong></p>')
16
+ def should_be_compact_paragraph(self, node):
17
+ """Determine if the <p> tags around paragraph can be omitted."""
18
+ if isinstance(node.parent, addnodes.desc_content):
19
+ # Never compact desc_content items.
21
+ return BaseTranslator.should_be_compact_paragraph(self, node)
23
def visit_compact_paragraph(self, node):
25
def depart_compact_paragraph(self, node):