mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
63db48962c
commit
bfc3e63980
@ -120,7 +120,7 @@ class SafeFormat(string.Formatter):
|
|||||||
try:
|
try:
|
||||||
prefix, key, suffix = explode_string_template_value(key)
|
prefix, key, suffix = explode_string_template_value(key)
|
||||||
if kwargs[key]:
|
if kwargs[key]:
|
||||||
return '%s%s%s'%(prefix, kwargs[key], suffix)
|
return prefix + kwargs[key] + suffix
|
||||||
return ''
|
return ''
|
||||||
except:
|
except:
|
||||||
return ''
|
return ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user