forked from openlp/openlp
parent
9dbd54bf8f
commit
962f038c9b
@ -73,6 +73,8 @@ class OpenLyricsExport(object):
|
||||
u', '.join([author.display_name for author in song.authors]))
|
||||
filename = re.sub(
|
||||
r'[/\\?*|<>\[\]":<>+%]+', u'_', filename).strip(u'_')
|
||||
tree.write(os.path.join(self.save_path, filename),
|
||||
file_object = open(os.path.join(self.save_path, filename), u'w')
|
||||
tree.write(file_object,
|
||||
encoding=u'utf-8', xml_declaration=True, pretty_print=True)
|
||||
file_object.close()
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user