mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix tests has broken by changset:bb0211a65072
This commit is contained in:
parent
b6ad264787
commit
0780d8ca04
@ -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'
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user