Fixes: https://launchpad.net/bugs/744337
This commit is contained in:
Andreas Preikschat 2011-04-12 11:37:59 +02:00
parent 9dbd54bf8f
commit 962f038c9b
1 changed files with 3 additions and 1 deletions

View File

@ -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