From 0284655ab92d16be9af0df3cf4c8875b7ccf0cb6 Mon Sep 17 00:00:00 2001 From: noah morrison Date: Thu, 6 Nov 2014 15:25:14 -0500 Subject: [PATCH] Fixed whitespace stripping In the last commit I changed how tag_key was being grabbed. This broke the way that I was stripping the whitespace. (whitespace from the front was staying) --- entei.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entei.py b/entei.py index 6753967..7e57a63 100755 --- a/entei.py +++ b/entei.py @@ -83,7 +83,8 @@ def tokenize(template): if tag_type != 'variable': tag_key = '' - tag_key += grab_literal(r_del).strip() + tag_key += grab_literal(r_del) + tag_key = tag_key.strip() if tag_type == 'no escape?': if get(1) == '}': -- 2.47.3