From 39333edbc306d5c39de76d8d62fa5ebf571bdfd4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 Mar 2011 10:56:00 -0600 Subject: [PATCH] Fix commas in author names being converted to pipe symbols in the book details window --- src/calibre/gui2/library/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index c5b13901ae..a200562ea9 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -428,7 +428,7 @@ class BooksModel(QAbstractTableModel): # {{{ au = self.db.authors(row) if not au: 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 return data