~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/python/doc/sphinx_html_compact.diff

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
3
 
@@ -16,6 +16,7 @@
4
 
 from docutils import nodes
5
 
 from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator
6
 
 
7
 
+from sphinx import addnodes
8
 
 from sphinx.locale import admonitionlabels, versionlabels
9
 
 from sphinx.util.smartypants import sphinx_smarty_pants
10
 
 
11
 
@@ -284,6 +285,14 @@ class HTMLTranslator(BaseTranslator):
12
 
     def depart_centered(self, node):
13
 
         self.body.append('</strong></p>')
14
 
 
15
 
+    # overwritten
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.
20
 
+            return False
21
 
+        return BaseTranslator.should_be_compact_paragraph(self, node)
22
 
+
23
 
     def visit_compact_paragraph(self, node):
24
 
         pass
25
 
     def depart_compact_paragraph(self, node):