From 6320eab8e860a72a87df11e4204e95f15101ec6c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Jul 2014 11:27:36 +0530 Subject: [PATCH] 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 --- src/calibre/library/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index e2c5c7ff86..841d44ff69 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -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():