fixed string

This commit is contained in:
Andreas Preikschat 2011-10-09 21:51:44 +02:00
parent 3c8cc5c532
commit e6751bd043
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ class OpenLyrics(object):
text = text.replace(u'{/%s}' % tag, u'</tag>')
# Replace \n with <br/>.
text = text.replace(u'\n', u'<br/>')
element = etree.XML(u'<lines>' + text + u'</lines>')
element = etree.XML(u'<lines>%s</lines>' % text)
verse_element.append(element)
return element