mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Respect the strip_results parameter in unsafe_format. No one uses it so there isn't any rush to incorporate this push.
This commit is contained in:
parent
c018244afe
commit
324a84f096
@ -506,7 +506,7 @@ class TemplateFormatter(string.Formatter):
|
||||
self.book = book
|
||||
self.composite_values = {}
|
||||
self.locals = {}
|
||||
return self.evaluate(fmt, [], kwargs).strip()
|
||||
return self.evaluate(fmt, [], kwargs)
|
||||
|
||||
########## a formatter guaranteed not to throw an exception ############
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user