]> Devi Nivas Git - chevron.git/commitdiff
Fixed "no escape?" bug
authornoah morrison <noah@morrison.ph>
Sat, 1 Nov 2014 17:23:51 +0000 (13:23 -0400)
committernoah morrison <noah@morrison.ph>
Sat, 1 Nov 2014 17:23:51 +0000 (13:23 -0400)
Triple brace tags were yielding "no escape?" instead of "no escape".

chevron.py

index c7a3226951770494e66d226a15708970fa44a5a7..b6ca106aeebe3105ad1ae350d80149beea9813ee 100755 (executable)
@@ -90,7 +90,7 @@ def tokenize(template):
         tag_key = grab_literal(r_del).strip()
 
         if tag_type == 'no escape?':
-            if peek(0, 3) == '}}}':
+            if peek(0, 1) == '}':
                 tag_type = 'no escape'
                 get(1)