tbranyen / combyne

A template engine that works the way you expect.
MIT License
144 stars 19 forks source link

Extra whitespace is added from previous line if it's an expression #56

Closed johnhaley81 closed 10 years ago

johnhaley81 commented 10 years ago

If you have template:

  {%each%}
  {{i}}
   {%endeach%}

You'll end up appending the whitespace from the beginning of the {%each%] line onto each iteration of {{i}}

    1
    2
    3
    //...

It should strip out all whitespace from a line that solely consists of an expression.