From 816534f816cf440ff8c06fa2e2412be4f0dcfb6a Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sun, 16 Nov 2014 00:24:24 -0500 Subject: [PATCH] Fix bugginess of {{{}}} style no escape. - Checks to ensure delimiters are set correctly. - Actually remove the } --- entei.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/entei.py b/entei.py index 1c7984e..7816006 100755 --- 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 -- 2.47.3