mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix bug when using tags like custom column in the template language
This commit is contained in:
parent
302d0c3546
commit
dab89f6f79
@ -131,6 +131,8 @@ class SafeFormat(TemplateFormatter):
|
|||||||
return self.composite_values[key]
|
return self.composite_values[key]
|
||||||
if key in kwargs:
|
if key in kwargs:
|
||||||
val = kwargs[key]
|
val = kwargs[key]
|
||||||
|
if isinstance(val, list):
|
||||||
|
val = ','.join(val)
|
||||||
return val.replace('/', '_').replace('\\', '_')
|
return val.replace('/', '_').replace('\\', '_')
|
||||||
return ''
|
return ''
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user