Fix regression in 0.8.43 that broke use of general mode templates that ended in a semi-colon. Fixes #957295 (Template Error: Custom Column built from other columns)

This commit is contained in:
Kovid Goyal 2012-03-17 08:47:15 +05:30
commit 874cfd9fa6

View File

@ -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: