diff --git a/ebook_converter/ebooks/lrf/pylrs/pylrs.py b/ebook_converter/ebooks/lrf/pylrs/pylrs.py index 745ef6a..9dd4bfe 100644 --- a/ebook_converter/ebooks/lrf/pylrs/pylrs.py +++ b/ebook_converter/ebooks/lrf/pylrs/pylrs.py @@ -670,7 +670,7 @@ class Info(Delegator): f = io.BytesIO() tree.write(f, encoding='utf-8', xml_declaration=True) xmlInfo = f.getvalue().decode('utf-8') - xmlInfo = re.sub(r"\n", "", xmlInfo) + xmlInfo = re.sub(r"]*/>\s*", "", xmlInfo) xmlInfo = xmlInfo.replace("SumPage>", "Page>") lrfWriter.docInfoXml = xmlInfo