From: noah morrison Date: Wed, 12 Nov 2014 14:49:29 +0000 (-0500) Subject: Fixed variables being registered as standalones X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=742c04e3cc8d4484c530785a7c2339bb76a4e155;p=chevron.git Fixed variables being registered as standalones I was never setting is_standalone to false if the tag was a variable or a no html escape tag --- diff --git a/entei.py b/entei.py index 21cf562..8d1e9f4 100755 --- a/entei.py +++ b/entei.py @@ -133,6 +133,9 @@ def tokenize(template): else: template.seek(template.tell() - (len(until) + 1)) + elif tag_type in ['variable', 'no escape']: + is_standalone = False + if literal != '': yield ('literal', literal)