Fix song bug with formatting

This commit is contained in:
Tim Bentley 2016-10-25 21:34:48 +01:00
parent e6571644dd
commit 885d70307e

View File

@ -458,7 +458,7 @@ class OpenLyrics(object):
self._add_tag_to_formatting(tag, tags_element)
# Replace end tags.
for tag in end_tags:
text = text.replace('{{{tag}}}'.format(tag=tag), '</tag>')
text = text.replace('{{/{tag}}}'.format(tag=tag), '</tag>')
# Replace \n with <br/>.
text = text.replace('\n', '<br/>')
element = etree.XML('<lines>{text}</lines>'.format(text=text))