mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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')
|
||||
md += r'{\title %s}'%(title,)
|
||||
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,)
|
||||
if options.category:
|
||||
category = options.category.encode('ascii', 'ignore')
|
||||
|
Loading…
x
Reference in New Issue
Block a user