mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #1509 TODO extension not compatible with websupport
websupport assigns UID to every node on reading phase and reads it on writing phase. but `todolist` directive generates new paragraph node on resolving phase. This problem will occur any extensions that generate paragraph nodes on resolving phase. This fix changes websupport ignores paragraph node not having UIDs.
This commit is contained in:
parent
38fcb0956f
commit
08cf46cbc9
@ -7,6 +7,7 @@
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user