aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/util.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-10-31 18:55:30 -0400
committerWaylan Limberg <waylan@gmail.com>2010-10-31 18:55:30 -0400
commit8fb1252aec84bf0de77de4df442f260c5a4d2f98 (patch)
tree869b448b64561f33d4e662dd91b9eb9cd6fc0cf0 /markdown/util.py
parentca6a0e7d735746ca947f99f590b19ad1121b9800 (diff)
downloadmarkdown-8fb1252aec84bf0de77de4df442f260c5a4d2f98.tar.gz
markdown-8fb1252aec84bf0de77de4df442f260c5a4d2f98.tar.bz2
markdown-8fb1252aec84bf0de77de4df442f260c5a4d2f98.zip
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.
Diffstat (limited to 'markdown/util.py')
-rw-r--r--markdown/util.py5
1 files changed, 1 insertions, 4 deletions
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
"""