This commit is contained in:
Kovid Goyal
2024-03-25 08:04:52 +05:30
+1 -1
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):