From fbaae8b740da42ddcff7ee419545ec9457339806 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 20 Nov 2010 18:00:11 +0100 Subject: For now, do not allow comments on literals. --- sphinx/util/websupport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sphinx/util/websupport.py') diff --git a/sphinx/util/websupport.py b/sphinx/util/websupport.py index 510ecbe0e..446093ff7 100644 --- a/sphinx/util/websupport.py +++ b/sphinx/util/websupport.py @@ -8,4 +8,5 @@ """ def is_commentable(node): - return node.__class__.__name__ in ('paragraph', 'literal_block') + #return node.__class__.__name__ in ('paragraph', 'literal_block') + return node.__class__.__name__ == 'paragraph' -- cgit v1.2.1