davidwessman / syntax_tree-erb

Syntax Tree support for ERB
MIT License
21 stars 3 forks source link

Refactor line breaks and whitespace #51

Closed davidwessman closed 1 year ago

davidwessman commented 1 year ago

Instead of trying to remove line-breaks in certain situations, instead we only add line-breaks were we are "sure" they are needed.

This should allow us to do:

Hello <%= user.name %>,

or

*<%= payment_source.last_digits %>
<%= payment_source.month %>/<%= payment_source.year %>