forked from openlp/openlp
fixed service save
This commit is contained in:
parent
419b6764c3
commit
53b0825a18
@ -594,7 +594,7 @@ class ServiceManager(QtGui.QWidget, ServiceManagerDialog):
|
||||
zip_file = zipfile.ZipFile(temp_file_name, 'w', zipfile.ZIP_STORED,
|
||||
True)
|
||||
# First we add service contents.
|
||||
zip_file.writestr(service_file_name.encode(u'utf-8'), service_content)
|
||||
zip_file.writestr(service_file_name, service_content)
|
||||
except IOError:
|
||||
log.exception(u'Failed to save service to disk: %s', temp_file_name)
|
||||
self.main_window.error_message(translate(u'OpenLP.ServiceManager', u'Error Saving File'),
|
||||
|
@ -340,7 +340,7 @@ class OpenLyrics(object):
|
||||
# Do not add the break attribute to the last lines element.
|
||||
if index < len(optional_verses) - 1:
|
||||
lines_element.set(u'break', u'optional')
|
||||
return self._extract_xml(song_xml)
|
||||
return self._extract_xml(song_xml).decode()
|
||||
|
||||
def _get_missing_tags(self, text):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user