Fix regex in LRF output that stripped CThumbnail metadata. .*? matched until >\n and cut off all children on the same line

This commit is contained in:
wave1martian
2026-03-09 09:46:49 +01:00
parent 7afb71db36
commit 89340f4908
+1 -1
View File
@@ -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"<CThumbnail.*?>\n", "", xmlInfo)
xmlInfo = re.sub(r"<CThumbnail[^>]*/>\s*", "", xmlInfo)
xmlInfo = xmlInfo.replace("SumPage>", "Page>")
lrfWriter.docInfoXml = xmlInfo