]> Devi Nivas Git - chevron.git/commitdiff
Fix bugginess of {{{}}} style no escape.
authorDaniel Morrison <dan@morrison.ph>
Sun, 16 Nov 2014 05:24:24 +0000 (00:24 -0500)
committerDaniel Morrison <dan@morrison.ph>
Sun, 16 Nov 2014 05:36:20 +0000 (00:36 -0500)
- Checks to ensure delimiters are set correctly.
- Actually remove the }

entei.py

index 1c7984e2c7e1be9a733bbe95d287c33c100616c9..7816006066eee13ec5bd364ed8423d1613b9cc16 100755 (executable)
--- a/entei.py
+++ b/entei.py
@@ -94,12 +94,10 @@ def tokenize(template):
 
         # If we might be a no html escape tag
         if tag_type == 'no escape?':
-            # TODO: this is buggy
-
             # If we have a third curly brace
-            if template[0] == '}':
+            if template[0] == '}' and l_del == '{{' and r_del == '}}':
                 # Then we are a no html escape tag
-                template[1:]
+                template = template[1:]
                 tag_type = 'no escape'
 
         # If we might be a set delimiter tag