mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove blanks in text/is_multiple field representation
This commit is contained in:
parent
c15f91812b
commit
7ea0e19840
@ -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)])))
|
||||
|
Loading…
x
Reference in New Issue
Block a user