@@ -293,16 +293,16 @@ def textileLists(self, text):
293
293
def fTextileList (self , match ):
294
294
text = re .split (r'\n(?=[*#;:]+\s)' , match .group (), flags = re .M )
295
295
pt = ''
296
- result = []
296
+ # result = []
297
297
ls = OrderedDict ()
298
298
for i , line in enumerate (text ):
299
- try :
300
- nextline = text [i + 1 ]
301
- except IndexError :
302
- nextline = ''
299
+ # try:
300
+ # nextline = text[i + 1]
301
+ # except IndexError:
302
+ # nextline = ''
303
303
304
304
m = re .search (r"^(?P<tl>[#*;:]+)(?P<st>_|\d+)?(?P<atts>{0})[ .]?"
305
- "(?P<content>.*)?$" .format (cls_re_s ), line , re .S )
305
+ "(?P<content>.*)?$" .format (cls_re_s ), line , re .S )
306
306
tl , start , atts , content = m .groups ()
307
307
attributes = parse_attributes (atts )
308
308
content = content .strip ()
@@ -371,15 +371,15 @@ def fTextileList(self, match):
371
371
_list .add_item (litem , content )
372
372
elif showitem :
373
373
# itemtag = ("\n{0}\t<{1}>{2}".format(tabs, litem, content) if
374
- # showitem else '')
374
+ # showitem else '')
375
375
_sublist = List ('{0}l' .format (ltype ), attributes )
376
376
# line = "<{0}l{1}{2}>{3}".format(ltype, atts, start, itemtag)
377
377
_sublist .add_item (litem , content , attributes )
378
378
_list .add_item (litem , _sublist )
379
379
# line = _sublist.process()
380
380
else :
381
381
# line = ("\t<{0}{1}>{2}".format(litem, atts, content) if
382
- # showitem else '')
382
+ # showitem else '')
383
383
_list .add_item (litem , content , attributes )
384
384
# line = '{0}{1}'.format(tabs, line)
385
385
@@ -402,8 +402,8 @@ def fTextileList(self, match):
402
402
# This else exists in the original php version. I'm not sure how
403
403
# to come up with a case where the line would not match. I think
404
404
# it may have been necessary due to the way php returns matches.
405
- #else:
406
- # line = "{0}\n".format(line)
405
+ # else:
406
+ # line = "{0}\n".format(line)
407
407
# result.append(line)
408
408
return self .doTagBr (litem , _list .process ())
409
409
0 commit comments