This a fix for template using multiline {% %} statements

When using {% (js code) \n%}, the \n is removed and the %} tag is next
to a javascript statement causing a parsing error.
Eg:
{%
myArray = [];
%}
=> {%myArray=[];%} instead of {% myArray=[]; %}