mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Support composite columns in book jackets.
This commit is contained in:
parent
c38bacc0ba
commit
cb97f51108
@ -375,6 +375,13 @@ def render_jacket(mi, output_profile,
|
||||
else:
|
||||
val = comments_to_html(val)
|
||||
args[dkey] = val
|
||||
elif dt == 'composite':
|
||||
val = val or ''
|
||||
# if the column is marked as containing html, use it
|
||||
# unchanged. Otherwise treat it as a comment.
|
||||
if not m.get('display', {}).get('contains_html', False):
|
||||
val = comments_to_html(val)
|
||||
args[dkey] = val
|
||||
else:
|
||||
args[dkey] = escape(val)
|
||||
args[dkey+'_label'] = escape(display_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user