Skip to content

Commit

Permalink
fixed ol lists with empty lines between items
Browse files Browse the repository at this point in the history
  • Loading branch information
radude committed Jul 18, 2018
1 parent 3044c56 commit 3eb343c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdx_truly_sane_lists/mdx_truly_sane_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run(self, parent, blocks):
items = self.get_items(blocks.pop(0))
sibling = self.lastChild(parent)

if not self.truly_sane and (sibling is not None and sibling.tag in self.SIBLING_TAGS):
if (sibling is not None and sibling.tag in self.SIBLING_TAGS) and (sibling.tag == 'ol' or not self.truly_sane):
lst = sibling
if lst[-1].text:
p = util.etree.Element('p')
Expand Down

0 comments on commit 3eb343c

Please sign in to comment.