mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1959202 [Column icons and stored templates](https://bugs.launchpad.net/calibre/+bug/1959202)
This commit is contained in:
commit
2f07353be9
@ -523,7 +523,7 @@ class _Parser:
|
|||||||
if not text.startswith('program:'):
|
if not text.startswith('program:'):
|
||||||
self.error(_("A stored template must begin with '{0}'").format('program:'))
|
self.error(_("A stored template must begin with '{0}'").format('program:'))
|
||||||
text = text[len('program:'):]
|
text = text[len('program:'):]
|
||||||
subprog = _Parser().program(self, self.funcs,
|
subprog = _Parser().program(self.parent, self.funcs,
|
||||||
self.parent.lex_scanner.scan(text))
|
self.parent.lex_scanner.scan(text))
|
||||||
self.funcs[name].cached_parse_tree = subprog
|
self.funcs[name].cached_parse_tree = subprog
|
||||||
return CallNode(self.line_number, name, subprog, arguments)
|
return CallNode(self.line_number, name, subprog, arguments)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user