[Python-modules-commits] r30238 - in packages/sphinx/trunk/debian/patches (websupport_todo.diff)
mitya57-guest at users.alioth.debian.org
mitya57-guest at users.alioth.debian.org
Mon Aug 25 10:08:25 UTC 2014
Date: Monday, August 25, 2014 @ 10:08:24
Author: mitya57-guest
Revision: 30238
Fix the previous patch
Modified:
packages/sphinx/trunk/debian/patches/websupport_todo.diff
Modified: packages/sphinx/trunk/debian/patches/websupport_todo.diff
===================================================================
--- packages/sphinx/trunk/debian/patches/websupport_todo.diff 2014-08-25 09:49:06 UTC (rev 30237)
+++ packages/sphinx/trunk/debian/patches/websupport_todo.diff 2014-08-25 10:08:24 UTC (rev 30238)
@@ -3,11 +3,13 @@
Bug-Debian: https://bugs.debian.org/754408
Last-Update: 2014-08-25
---- a/sphinx/util/websupport.py
-+++ b/sphinx/util/websupport.py
-@@ -9,4 +9,4 @@
+--- a/sphinx/writers/websupport.py
++++ b/sphinx/writers/websupport.py
+@@ -23,7 +23,7 @@
+ self.comment_class = 'sphinx-has-comment'
- def is_commentable(node):
- #return node.__class__.__name__ in ('paragraph', 'literal_block')
-- return node.__class__.__name__ == 'paragraph'
-+ return node.__class__.__name__ == 'paragraph' and hasattr(node, 'uid')
+ def dispatch_visit(self, node):
+- if is_commentable(node):
++ if is_commentable(node) and hasattr(node, 'uid'):
+ self.handle_visit_commentable(node)
+ HTMLTranslator.dispatch_visit(self, node)
More information about the Python-modules-commits
mailing list