mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #375
This commit is contained in:
parent
01f65a1ce1
commit
c89dcfaa24
@ -102,7 +102,10 @@ def create_metadata(stream, options):
|
|||||||
title = options.title.encode('ascii', 'ignore')
|
title = options.title.encode('ascii', 'ignore')
|
||||||
md += r'{\title %s}'%(title,)
|
md += r'{\title %s}'%(title,)
|
||||||
if options.authors:
|
if options.authors:
|
||||||
author = options.authors.encode('ascii', 'ignore')
|
au = options.authors
|
||||||
|
if not isinstance(au, basestring):
|
||||||
|
au = u', '.join(au)
|
||||||
|
author = au.encode('ascii', 'ignore')
|
||||||
md += r'{\author %s}'%(author,)
|
md += r'{\author %s}'%(author,)
|
||||||
if options.category:
|
if options.category:
|
||||||
category = options.category.encode('ascii', 'ignore')
|
category = options.category.encode('ascii', 'ignore')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user