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
commit bfe4e43e32
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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