mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1076 (EPUB Conversion Error)
This commit is contained in:
parent
202911f285
commit
b51e6b73a7
@ -513,6 +513,9 @@ class Template(object):
|
||||
value = [x for x in values if x is not None]
|
||||
if not value:
|
||||
continue
|
||||
for i, v in enumerate(value):
|
||||
if isinstance(v, str):
|
||||
value[i] = v.decode('utf-8')
|
||||
new_attrs.append((name, u''.join(value)))
|
||||
yield kind, (tag, Attrs(new_attrs)), pos
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user