Inconsistent/unclear whitespace stripping rules #147
Labels
bug
Something isn't working
commercial support required
commercial subscriber feature
enhancement
New feature or request
The new whitespace stripping logic seems inconsistent/unclear and is in general just difficult to use to achieve the desired result.
The documentation suggests that + and * should stop at a newline, but in practice they will remove multiple newlines, and any leading whitespace of the following line.
becomes
The documentation gives conflicting explanations for behavior on blocks. Suggesting that
will resolve to both
and
while ultimately producing
This application of the
<%-
at the start of a block to all sub elements means there is no clean way to completely remove the line on which a block starts without also removing any leading whitespace from within the blockThe left side stripping indicator on a
<%- end *%>
statement is ignored resulting in any preceding whitespace being applied to the next lineThese all combine to produce some quite unexpected results with e.g. nested for loops
The text was updated successfully, but these errors were encountered: