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:
Charles Haley 2014-06-27 11:14:09 +02:00
parent c018244afe
commit 324a84f096

View File

@ -506,7 +506,7 @@ class TemplateFormatter(string.Formatter):
self.book = book self.book = book
self.composite_values = {} self.composite_values = {}
self.locals = {} self.locals = {}
return self.evaluate(fmt, [], kwargs).strip() return self.evaluate(fmt, [], kwargs)
########## a formatter guaranteed not to throw an exception ############ ########## a formatter guaranteed not to throw an exception ############