mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Correct fix for the formatter strip_results problem -- define the attribute in __init__
This commit is contained in:
parent
eac3ae43e9
commit
3848d7bf7d
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user