Skip to content

Commit

Permalink
improve handling of list-attribute-only lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Aug 9, 2024
1 parent b7b6936 commit 4c620d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textile/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ def fTextileList(self, match):
# item, else just create the item
if tl not in ls:
ls[tl] = 1
if i == 0:
if i == 0 and showitem:
_list.add_item(litem, content)
else:
elif showitem:
# itemtag = ("\n{0}\t<{1}>{2}".format(tabs, litem, content) if
# showitem else '')
_sublist = List('{0}l'.format(ltype), attributes)
Expand Down

0 comments on commit 4c620d9

Please sign in to comment.