From 3848d7bf7dff7d8e53798bb2eebdeeceb1ca7d7c Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Wed, 2 Jul 2014 23:19:05 +0200 Subject: [PATCH] Correct fix for the formatter strip_results problem -- define the attribute in __init__ --- src/calibre/utils/formatter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/utils/formatter.py b/src/calibre/utils/formatter.py index 82d2777830..4f6569ea69 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -322,6 +322,7 @@ class TemplateFormatter(string.Formatter): string.Formatter.__init__(self) self.book = None self.kwargs = None + self.strip_results = True self.locals = {} def _do_format(self, val, fmt):