while not template.is_finished:
literal = grab_literal()
+ if template.is_finished:
+ yield ('literal', literal)
+ break
+
if literal.find('\n') != -1 or is_standalone:
padding = literal.split('\n')[-1]
if padding.isspace() or padding == '':
else:
is_standalone = False
- if template.is_finished:
- yield ('literal', literal)
- break
-
tag_key = get(1)
tag_type = tag_types.get(tag_key, 'variable')
if tag_type != 'variable':