mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Template language: Fix regression that broke using geenral program mode in save to disk templates
This commit is contained in:
commit
772e995a0a
@ -339,6 +339,7 @@ class TemplateFormatter(string.Formatter):
|
|||||||
########## a formatter that throws exceptions ############
|
########## a formatter that throws exceptions ############
|
||||||
|
|
||||||
def unsafe_format(self, fmt, kwargs, book):
|
def unsafe_format(self, fmt, kwargs, book):
|
||||||
|
self.column_name = self.template_cache = None
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
self.book = book
|
self.book = book
|
||||||
self.composite_values = {}
|
self.composite_values = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user