When using a combination of a conditional and pairs of literal quotes (ie. both “” and ‘’), erb-formatter will delete part of the content:
<% if named? %>
The folder “<%= name %>” will be deleted.
<% end %>
Becomes:
<% if named? %>
The folder “<%= name %>will be deleted.
<% end %>
And it gets worse when you also include a elsif clause, so it looks like an indexing problem when attempting to move the <%= name %> expression to a separate line.
The workaround is to use character entities:
<% if named? %>
The folder “<%= name %>” will be deleted.
<% end %>
When using a combination of a conditional and pairs of literal quotes (ie. both “” and ‘’), erb-formatter will delete part of the content:
Becomes:
And it gets worse when you also include a
elsifclause, so it looks like an indexing problem when attempting to move the<%= name %>expression to a separate line.The workaround is to use character entities: