]> Devi Nivas Git - chevron.git/commitdiff
Fixed set delimiter tags nomming a character
authornoah morrison <noah@morrison.ph>
Tue, 11 Nov 2014 03:17:00 +0000 (22:17 -0500)
committernoah morrison <noah@morrison.ph>
Tue, 11 Nov 2014 03:17:00 +0000 (22:17 -0500)
entei.py

index fc08672b2e03968f85f8a59bcc6d0e708434e525..6f570da766fa58897c0da99a486b24697f68e222 100755 (executable)
--- a/entei.py
+++ b/entei.py
@@ -126,7 +126,10 @@ def tokenize(template):
                 if template.is_finished:
                     template.is_finished = False
 
-                template.seek(template.tell() - (len(until) + 1))
+                if tag_type == 'set delimiter?':
+                    template.seek(template.tell() - len(until))
+                else:
+                    template.seek(template.tell() - (len(until) + 1))
 
         if literal != '':
             yield ('literal', literal)