mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:33:12 +02:00
Fix template program regression triggered by recursively calling the processor
This commit is contained in:
parent
4325a82e82
commit
b22e640b50
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ class BuiltinTemplate(BuiltinFormatterFunction):
|
|||
|
||||
def evaluate(self, formatter, kwargs, mi, locals, template):
|
||||
template = template.replace('[[', '{').replace(']]', '}')
|
||||
return formatter.safe_format(template, kwargs, 'TEMPLATE', mi)
|
||||
return formatter.__class__().safe_format(template, kwargs, 'TEMPLATE', mi)
|
||||
|
||||
class BuiltinEval(BuiltinFormatterFunction):
|
||||
name = 'eval'
|
||||
|
|
|
|||
Loading…
Reference in a new issue