diff options
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): |