From 89340f4908ba347c5894020c2fe06fc56c66328d Mon Sep 17 00:00:00 2001 From: wave1martian Date: Mon, 9 Mar 2026 09:46:49 +0100 Subject: [PATCH] Fix regex in LRF output that stripped CThumbnail metadata. .*? matched until >\n and cut off all children on the same line --- ebook_converter/ebooks/lrf/pylrs/pylrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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