From ccf2c33111de933e97db6121ee983bf03b757839 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 20 Nov 2011 12:33:39 +0100 Subject: [PATCH] Fix regression using GPM templates in save-to-disk. --- 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 aca49ccb43..b1224de3da 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -339,6 +339,7 @@ class TemplateFormatter(string.Formatter): ########## a formatter that throws exceptions ############ def unsafe_format(self, fmt, kwargs, book): + self.column_name = self.template_cache = None self.kwargs = kwargs self.book = book self.composite_values = {}