mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-16 14:01:54 -04:00
Merge branch 'fix/mobi-namespace-tag-valueerror' of https://github.com/adar2378/calibre
This commit is contained in:
commit
bfe4e43e32
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user