Fix tests has broken by changset:bb0211a65072

This commit is contained in:
tk0miya 2014-08-24 19:40:32 +09:00
parent b6ad264787
commit 0780d8ca04
2 changed files with 2 additions and 2 deletions

View File

@ -10,4 +10,4 @@
def is_commentable(node):
#return node.__class__.__name__ in ('paragraph', 'literal_block')
return node.__class__.__name__ == 'paragraph' and hasattr(node, 'uid')
return node.__class__.__name__ == 'paragraph'

View File

@ -23,7 +23,7 @@ class WebSupportTranslator(HTMLTranslator):
self.comment_class = 'sphinx-has-comment'
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)