mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 10:45:08 +01:00
Fix #375
This commit is contained in:
parent
01f65a1ce1
commit
c89dcfaa24
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Reference in a new issue