Merge branch 'fix/mobi-namespace-tag-valueerror' of https://github.com/adar2378/calibre

This commit is contained in:
Kovid Goyal
2026-04-05 22:17:37 +05:30
@@ -246,6 +246,8 @@ class Chunker:
try:
elem = nroot.makeelement(tn, attrib=attrib)
except ValueError:
if ':' in tn:
tn = tn.replace(':', '-')
attrib = {k:v for k, v in attrib.items() if ':' not in k}
elem = nroot.makeelement(tn, attrib=attrib)
elem.text = tag.text