calibredb: When listing formats of a book if there are multiple formats, separate the individual formats with the colon instead of the comma as commas can occur in filenames

This commit is contained in:
Kovid Goyal 2014-07-23 11:27:36 +05:30
parent a6c1e806c2
commit 6320eab8e8

View File

@ -92,7 +92,7 @@ def do_list(db, fields, afields, sort_by, ascending, search_text, line_width, se
for f in data:
fmts = [x for x in f['formats'] if x is not None]
f['formats'] = u'[%s]'%u','.join(fmts)
f['formats'] = u'[%s]'%u':'.join(fmts)
widths = list(map(lambda x: 0, fields))
for record in data:
for f in record.keys():