we can replace before splitting

This commit is contained in:
Andreas Preikschat 2011-06-14 08:58:49 +02:00
parent 7d5e349602
commit bd6733eef1
1 changed files with 2 additions and 2 deletions

View File

@ -503,5 +503,5 @@ class Renderer(object):
"""
# this parse we do not want to use this so remove it
text = text.replace(u'\n[---]', u'')
lines = text.split(u'\n')
return [line.replace(u'[---]', u'') for line in lines]
text = text.replace(u'[---]', u'')
return text.split(u'\n')