mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Backed out change including empty custom column, but kept commented-out diagnostic code
This commit is contained in:
parent
d65dcd572a
commit
2ac38d5eec
@ -188,13 +188,13 @@ def render_jacket(mi, output_profile,
|
|||||||
footer=''
|
footer=''
|
||||||
)
|
)
|
||||||
for key in mi.custom_field_keys():
|
for key in mi.custom_field_keys():
|
||||||
|
try:
|
||||||
display_name, val = mi.format_field_extended(key)[:2]
|
display_name, val = mi.format_field_extended(key)[:2]
|
||||||
key = key.replace('#', '_')
|
key = key.replace('#', '_')
|
||||||
if val:
|
|
||||||
args[key] = escape(val)
|
args[key] = escape(val)
|
||||||
else:
|
|
||||||
args[key] = ''
|
|
||||||
args[key+'_label'] = escape(display_name)
|
args[key+'_label'] = escape(display_name)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
print("Custom column values available in jacket template:")
|
print("Custom column values available in jacket template:")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user