mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Correct fix for the formatter strip_results problem -- define the attribute in __init__
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user