mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in template compilation where a trailing semicolon causes incorrect code to be generated.
This commit is contained in:
parent
00ffb87d2e
commit
d93c5f39ef
@ -210,11 +210,11 @@ class _CompileParser(_Parser):
|
||||
return val
|
||||
if not self.token_op_is_a_semicolon():
|
||||
return val
|
||||
if self.compile_text:
|
||||
self.compile_text += "\targs[%d] = list()\n"%(level,)
|
||||
self.consume()
|
||||
if self.token_is_eof():
|
||||
return val
|
||||
if self.compile_text:
|
||||
self.compile_text += "\targs[%d] = list()\n"%(level,)
|
||||
|
||||
def expr(self, level):
|
||||
if self.compile_text:
|
||||
|
Loading…
x
Reference in New Issue
Block a user