Even though the declarations are trimmed of whitespace in Rivets.View::build, we…
… should still trim them in the tokenizer.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -60,7 +60,7 @@ class Rivets.TextTemplateParser | ... | @@ -60,7 +60,7 @@ class Rivets.TextTemplateParser |
60 | 60 | ||
61 | break | 61 | break |
62 | 62 | ||
63 | value = template.slice(lastIndex, index) | 63 | value = template.slice(lastIndex, index).trim() |
64 | tokens.push type: @types.binding, value: value | 64 | tokens.push type: @types.binding, value: value |
65 | lastIndex = index + delimiters[1].length | 65 | lastIndex = index + delimiters[1].length |
66 | 66 | ... | ... |
-
Please register or sign in to post a comment