mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Remove blanks in text/is_multiple field representation
This commit is contained in:
@@ -229,7 +229,7 @@ class MobileServer(object):
|
||||
continue
|
||||
name = CFM[key]['name']
|
||||
if datatype == 'text' and CFM[key]['is_multiple']:
|
||||
book[key] = concat(name, ', '.join(val.split('|')))
|
||||
book[key] = concat(name, ','.join(val.split('|')))
|
||||
elif datatype == 'series':
|
||||
book[key] = concat(name, '%s [%s]'%(val,
|
||||
fmt_sidx(record[CFM.cc_series_index_column_for(key)])))
|
||||
|
||||
@@ -105,7 +105,7 @@ class XMLServer(object):
|
||||
name = CFM[key]['name']
|
||||
custcols.append(k)
|
||||
if datatype == 'text' and CFM[key]['is_multiple']:
|
||||
kwargs[k] = concat(name, ', '.join(val.split('|')))
|
||||
kwargs[k] = concat(name, ','.join(val.split('|')))
|
||||
elif datatype == 'series':
|
||||
kwargs[k] = concat(name, '%s [%s]'%(val,
|
||||
fmt_sidx(record[CFM.cc_series_index_column_for(key)])))
|
||||
|
||||
Reference in New Issue
Block a user