From: Daniel Morrison Date: Sun, 16 Nov 2014 05:24:24 +0000 (-0500) Subject: Fix bugginess of {{{}}} style no escape. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=816534f816cf440ff8c06fa2e2412be4f0dcfb6a;p=chevron.git Fix bugginess of {{{}}} style no escape. - Checks to ensure delimiters are set correctly. - Actually remove the } --- 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