From: noah morrison Date: Thu, 6 Nov 2014 20:25:14 +0000 (-0500) Subject: Fixed whitespace stripping X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=0284655ab92d16be9af0df3cf4c8875b7ccf0cb6;p=chevron.git 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) --- 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) == '}':