From 8fb1252aec84bf0de77de4df442f260c5a4d2f98 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 31 Oct 2010 18:55:30 -0400 Subject: Fixed previous two commits. cElementTree cannot use ElementTree nodes in the tree, but it still uses ElementTree Comment assinged to a node's tag to test for Comment nodes. Also no longer considering Commet nodes to be block level. --- markdown/util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'markdown/util.py') diff --git a/markdown/util.py b/markdown/util.py index 9ae523f..8e950b9 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -53,10 +53,7 @@ def isBlockLevel(tag): """Check if the tag is a block level HTML tag.""" if isinstance(tag, basestring): return BLOCK_LEVEL_ELEMENTS.match(tag) - # Some ElementTree tags are not strings, so return True for Comments - # and False for anything else. - if tag is etree.Comment: - return True + # Some ElementTree tags are not strings, so return False. return False """ -- cgit v1.2.3