mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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)
|
string.Formatter.__init__(self)
|
||||||
self.book = None
|
self.book = None
|
||||||
self.kwargs = None
|
self.kwargs = None
|
||||||
|
self.strip_results = True
|
||||||
self.locals = {}
|
self.locals = {}
|
||||||
|
|
||||||
def _do_format(self, val, fmt):
|
def _do_format(self, val, fmt):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user