mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:53:25 +02:00
Fix #814722 (Option to save .opf metadata as <meta> in epub.)
This commit is contained in:
parent
d66fd24888
commit
9618a0ac4d
1 changed files with 3 additions and 1 deletions
|
|
@ -1030,8 +1030,10 @@ def create_metadata_element(self, name, attrib=None, is_dc=True):
|
|||
attrib = attrib or {}
|
||||
attrib['name'] = 'calibre:' + name
|
||||
name = '{%s}%s' % (self.NAMESPACES['opf'], 'meta')
|
||||
nsmap = dict(self.NAMESPACES)
|
||||
del nsmap['opf']
|
||||
elem = etree.SubElement(self.metadata, name, attrib=attrib,
|
||||
nsmap=self.NAMESPACES)
|
||||
nsmap=nsmap)
|
||||
elem.tail = '\n'
|
||||
return elem
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue