mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix rare problem in compiled template functions where numeric results were not converted to string.
This commit is contained in:
parent
e64f93843a
commit
9ff3913e02
@ -289,7 +289,7 @@ class _CompileParser(_Parser):
|
|||||||
if self.compile_text:
|
if self.compile_text:
|
||||||
self.compile_text += (
|
self.compile_text += (
|
||||||
"\targs[%d].append(self.__funcs__['%s']"
|
"\targs[%d].append(self.__funcs__['%s']"
|
||||||
".evaluate(formatter, kwargs, book, locals, *args[%d]))\n")%(level, id, level+1)
|
".eval_(formatter, kwargs, book, locals, *args[%d]))\n")%(level, id, level+1)
|
||||||
return cls.eval_(self.parent, self.parent_kwargs,
|
return cls.eval_(self.parent, self.parent_kwargs,
|
||||||
self.parent_book, self.parent_locals, *args)
|
self.parent_book, self.parent_locals, *args)
|
||||||
elif self.token_is_constant():
|
elif self.token_is_constant():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user