Add missing parameter to unsafe_format to prevent exceptions in save-to-disk

This commit is contained in:
Charles Haley 2014-06-27 11:06:09 +02:00
parent 0ffdbf0be9
commit c018244afe

View File

@ -499,7 +499,8 @@ class TemplateFormatter(string.Formatter):
########## a formatter that throws exceptions ############
def unsafe_format(self, fmt, kwargs, book):
def unsafe_format(self, fmt, kwargs, book, strip_results=True):
self.strip_results = strip_results
self.column_name = self.template_cache = None
self.kwargs = kwargs
self.book = book