From 78506014eceb3400d2fee3b39653753fae80939a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 2 Sep 2013 10:22:49 -0400 Subject: Ensure each term on def list maintains its own loose status. Previously, the code was ignoring whether this was a new term when determining whether the currect item should be loose or not. Fixes #243. Thanks for the report @Anomareh. --- markdown/extensions/def_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown/extensions/def_list.py') diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py index 8684652..df639df 100644 --- a/markdown/extensions/def_list.py +++ b/markdown/extensions/def_list.py @@ -69,7 +69,7 @@ class DefListProcessor(BlockProcessor): if sibling and sibling.tag == 'dl': # This is another item on an existing list dl = sibling - if len(dl) and dl[-1].tag == 'dd' and len(dl[-1]): + if not terms and len(dl) and dl[-1].tag == 'dd' and len(dl[-1]): state = 'looselist' else: # This is a new list -- cgit v1.2.3