]> Devi Nivas Git - chevron.git/commitdiff
Fixed variables being registered as standalones
authornoah morrison <noah@morrison.ph>
Wed, 12 Nov 2014 14:49:29 +0000 (09:49 -0500)
committernoah morrison <noah@morrison.ph>
Wed, 12 Nov 2014 14:49:29 +0000 (09:49 -0500)
I was never setting is_standalone to false if the tag
was a variable or a no html escape tag

entei.py

index 21cf5624a0aa1e8df17fb0a251469d6d841aa726..8d1e9f4c0de39d5b2efdf33a1eedc4a6b9b373e4 100755 (executable)
--- 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)