diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-01-31 12:14:38 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-01-31 12:14:38 -0500 |
commit | 82ad7a9c155a7b9813a48b10479d1b742690deaa (patch) | |
tree | 00382b75b4fa95c86ccfd3e64a1d0649e18c36c1 /markdown/blockprocessors.py | |
parent | 17123eaf6eb72a60bf6c5b8a1ad0457187387879 (diff) | |
download | markdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.tar.gz markdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.tar.bz2 markdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.zip |
Use newer ElementTree API to avoid future breakage.
Diffstat (limited to 'markdown/blockprocessors.py')
-rw-r--r-- | markdown/blockprocessors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 9c137df..a516fb4 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -148,7 +148,7 @@ class ListIndentProcessor(BlockProcessor): return block.startswith(' '*self.tab_length) and \ not self.parser.state.isstate('detabbed') and \ (parent.tag in self.ITEM_TYPES or - (len(parent) and parent[-1] and + (len(parent) and parent[-1] is not None and (parent[-1].tag in self.LIST_TYPES))) def run(self, parent, blocks): |