forked from openlp/openlp
Make easyslide importer try to recover when reading non-standard xml. Fixes bug 1588822.
Fixes: https://launchpad.net/bugs/1588822
This commit is contained in:
parent
8009bfef85
commit
f5da7e2a2b
@ -46,7 +46,7 @@ class EasySlidesImport(SongImport):
|
||||
|
||||
def do_import(self):
|
||||
log.info('Importing EasySlides XML file {source}'.format(source=self.import_source))
|
||||
parser = etree.XMLParser(remove_blank_text=True)
|
||||
parser = etree.XMLParser(remove_blank_text=True, recover=True)
|
||||
parsed_file = etree.parse(self.import_source, parser)
|
||||
xml = etree.tostring(parsed_file).decode()
|
||||
song_xml = objectify.fromstring(xml)
|
||||
|
Loading…
Reference in New Issue
Block a user