mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #814722 (Option to save .opf metadata as <meta> in epub.)
This commit is contained in:
parent
d66fd24888
commit
9618a0ac4d
@ -1030,8 +1030,10 @@ class OPF(object): # {{{
|
|||||||
attrib = attrib or {}
|
attrib = attrib or {}
|
||||||
attrib['name'] = 'calibre:' + name
|
attrib['name'] = 'calibre:' + name
|
||||||
name = '{%s}%s' % (self.NAMESPACES['opf'], 'meta')
|
name = '{%s}%s' % (self.NAMESPACES['opf'], 'meta')
|
||||||
|
nsmap = dict(self.NAMESPACES)
|
||||||
|
del nsmap['opf']
|
||||||
elem = etree.SubElement(self.metadata, name, attrib=attrib,
|
elem = etree.SubElement(self.metadata, name, attrib=attrib,
|
||||||
nsmap=self.NAMESPACES)
|
nsmap=nsmap)
|
||||||
elem.tail = '\n'
|
elem.tail = '\n'
|
||||||
return elem
|
return elem
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user