Skip to content

Commit 565316e

Browse files
committed
less redundant way to add tabs
1 parent 854cd14 commit 565316e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

textile/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,11 @@ def fTextileList(self, match):
516516
ls[tl] = 1
517517
itemtag = ("\n{0}\t<{1}>{2}".format(tabs, litem, content) if
518518
showitem else '')
519-
line = "{0}<{1}l{2}{3}>{4}".format(tabs, ltype, atts, start,
520-
itemtag)
519+
line = "<{0}l{1}{2}>{3}".format(ltype, atts, start, itemtag)
521520
else:
522-
line = ("{0}\t<{1}{2}>{3}".format(tabs, litem, atts, content) if
521+
line = ("\t<{0}{1}>{2}".format(litem, atts, content) if
523522
showitem else '')
523+
line = '{0}{1}'.format(tabs, line)
524524

525525
if len(nl) <= len(tl):
526526
if showitem:

0 commit comments

Comments
 (0)