mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 15:16:33 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ def expr(self, level):
|
|||
if self.compile_text:
|
||||
self.compile_text += (
|
||||
"\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,
|
||||
self.parent_book, self.parent_locals, *args)
|
||||
elif self.token_is_constant():
|
||||
|
|
|
|||
Loading…
Reference in a new issue