mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'fix-re-sub' of https://github.com/nikital/calibre
This commit is contained in:
commit
66689df291
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user