]> Devi Nivas Git - chevron.git/commitdiff
Fixed variables being standalones
authornoah morrison <noah@morrison.ph>
Mon, 10 Nov 2014 03:11:04 +0000 (22:11 -0500)
committernoah morrison <noah@morrison.ph>
Mon, 10 Nov 2014 03:11:04 +0000 (22:11 -0500)
entei.py

index 40173cdd78b4f06914abcc627f007f412c333c0c..1bdca1f4d79586a543e898f36c5161e238af129e 100755 (executable)
--- a/entei.py
+++ b/entei.py
@@ -115,7 +115,7 @@ def tokenize(template):
             if tag_key != last_section:
                 raise UnclosedSection()
 
-        if is_standalone:
+        if is_standalone and tag_type not in ['variable', 'no escape']:
             until = grab_literal('\n')
             if until.isspace() or until == '':
                 is_standalone = True