mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -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:
@@ -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 ############
|
||||
|
||||
|
||||
Reference in New Issue
Block a user