You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<%- etc -%> with leading and/or trailing dash inside the block is valid Ruby, <% -etc- %> obviously isn't.
Granted, this syntax has been deprecated since Rails 4.2, so I should probably refactor my templates. In old Rails it was supposed to remove leading and/or trailing spaces in the output, but since 4.2 this behaviour changed and they're now unneeded.
This happens when running prettier on my legacy erb file:
<%- etc -%>
with leading and/or trailing dash inside the block is valid Ruby,<% -etc- %>
obviously isn't.Granted, this syntax has been deprecated since Rails 4.2, so I should probably refactor my templates. In old Rails it was supposed to remove leading and/or trailing spaces in the output, but since 4.2 this behaviour changed and they're now unneeded.
Background:
But old syntax or not, this is probably still a bug?
The text was updated successfully, but these errors were encountered: