This commit is contained in:
Kovid Goyal 2024-03-25 08:04:52 +05:30
commit 66689df291
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1006,7 +1006,7 @@ class Container(ContainerBase): # {{{
if name == self.opf_name and root.nsmap.get(None) == OPF2_NS:
# Needed as I can't get lxml to output opf:role and
# not output <opf:metadata> as well
data = re.sub(br'(<[/]{0,1})opf:', r'\1', data)
data = re.sub(br'(<[/]{0,1})opf:', br'\1', data)
return data
def commit_item(self, name, keep_parsed=False):