fixed two extra new lines being added

This commit is contained in:
Andreas Preikschat 2012-05-05 16:25:55 +02:00
parent f658c741eb
commit b3f733233a

View File

@ -336,7 +336,7 @@ class OpenLyrics(object):
verse_element.set(u'lang', verse[0][u'lang'])
# Create a list with all "optional" verses.
optional_verses = cgi.escape(verse[1])
optional_verses = optional_verses.split(u'[---]')
optional_verses = optional_verses.split(u'\n[---]\n')
start_tags = u''
end_tags = u''
for index, optional_verse in enumerate(optional_verses):