Fix commas in author names being converted to pipe symbols in the book details window

This commit is contained in:
Kovid Goyal 2011-03-19 10:56:00 -06:00
parent 0e3f09968b
commit 39333edbc3

View File

@ -428,7 +428,7 @@ class BooksModel(QAbstractTableModel): # {{{
au = self.db.authors(row) au = self.db.authors(row)
if not au: if not au:
au = _('Unknown') au = _('Unknown')
au = ', '.join([a.strip() for a in au.split(',')]) au = authors_to_string([a.strip().replace('|', ',') for a in au.split(',')])
data[_('Author(s)')] = au data[_('Author(s)')] = au
return data return data