Support composite columns in book jackets.

This commit is contained in:
Charles Haley 2024-03-02 13:00:50 +00:00
parent c38bacc0ba
commit cb97f51108

View File

@ -375,6 +375,13 @@ def render_jacket(mi, output_profile,
else: else:
val = comments_to_html(val) val = comments_to_html(val)
args[dkey] = 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: else:
args[dkey] = escape(val) args[dkey] = escape(val)
args[dkey+'_label'] = escape(display_name) args[dkey+'_label'] = escape(display_name)