diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-09-02 10:22:49 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-09-02 10:22:49 -0400 |
commit | 78506014eceb3400d2fee3b39653753fae80939a (patch) | |
tree | 7de25175e7fbdcda144bbd3577eee5284346d7ac /markdown/extensions | |
parent | 5c4523e7956063d20d517ba9a33853a5541a1396 (diff) | |
download | markdown-78506014eceb3400d2fee3b39653753fae80939a.tar.gz markdown-78506014eceb3400d2fee3b39653753fae80939a.tar.bz2 markdown-78506014eceb3400d2fee3b39653753fae80939a.zip |
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.
Diffstat (limited to 'markdown/extensions')
-rw-r--r-- | markdown/extensions/def_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |