]> Devi Nivas Git - chevron.git/commitdiff
Fixed whitespace stripping
authornoah morrison <noah@morrison.ph>
Thu, 6 Nov 2014 20:25:14 +0000 (15:25 -0500)
committernoah morrison <noah@morrison.ph>
Thu, 6 Nov 2014 20:25:14 +0000 (15:25 -0500)
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

index 6753967c54d3745dcbaa2c9571ad3de844ab92b7..7e57a638f36c0a010e088540630e44cfee3a6714 100755 (executable)
--- 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) == '}':