mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
dee27d1a84
commit
b8528c5305
@ -1430,7 +1430,10 @@ def metadata_to_opf(mi, as_string=True, default_lang=None):
|
||||
elem = metadata.makeelement(tag, attrib=attrib)
|
||||
elem.tail = '\n'+(' '*8)
|
||||
if text:
|
||||
try:
|
||||
elem.text = text.strip()
|
||||
except ValueError:
|
||||
elem.text = clean_ascii_chars(text.strip())
|
||||
metadata.append(elem)
|
||||
|
||||
factory(DC('title'), mi.title)
|
||||
|
Loading…
x
Reference in New Issue
Block a user