@@ -293,16 +293,16 @@ def textileLists(self, text):
293293 def fTextileList (self , match ):
294294 text = re .split (r'\n(?=[*#;:]+\s)' , match .group (), flags = re .M )
295295 pt = ''
296- result = []
296+ # result = []
297297 ls = OrderedDict ()
298298 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 = ''
303303
304304 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 )
306306 tl , start , atts , content = m .groups ()
307307 attributes = parse_attributes (atts )
308308 content = content .strip ()
@@ -371,15 +371,15 @@ def fTextileList(self, match):
371371 _list .add_item (litem , content )
372372 elif showitem :
373373 # itemtag = ("\n{0}\t<{1}>{2}".format(tabs, litem, content) if
374- # showitem else '')
374+ # showitem else '')
375375 _sublist = List ('{0}l' .format (ltype ), attributes )
376376 # line = "<{0}l{1}{2}>{3}".format(ltype, atts, start, itemtag)
377377 _sublist .add_item (litem , content , attributes )
378378 _list .add_item (litem , _sublist )
379379 # line = _sublist.process()
380380 else :
381381 # line = ("\t<{0}{1}>{2}".format(litem, atts, content) if
382- # showitem else '')
382+ # showitem else '')
383383 _list .add_item (litem , content , attributes )
384384 # line = '{0}{1}'.format(tabs, line)
385385
@@ -402,8 +402,8 @@ def fTextileList(self, match):
402402 # This else exists in the original php version. I'm not sure how
403403 # to come up with a case where the line would not match. I think
404404 # 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)
407407 # result.append(line)
408408 return self .doTagBr (litem , _list .process ())
409409
0 commit comments