mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #347
This commit is contained in:
parent
5cbe331c07
commit
13128562cd
@ -163,7 +163,8 @@ class OPF(MetaInformation):
|
||||
if isinstance(value, basestring):
|
||||
value = [value]
|
||||
attrs = [attrs]
|
||||
doc = dom.parseString(self.soup.__str__('UTF-8'))
|
||||
|
||||
doc = dom.parseString(self.soup.__str__('UTF-8').strip())
|
||||
package = doc.documentElement
|
||||
metadata = package.getElementsByTagName('metadata')[0]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user