Reputation: 3
I have following native code escape blocks inside ERB file
let hide_registration = <%= @user.skip_registration? %>
After I hit save, it gets formatted like this:
let hide_registration = < %= @user.skip_registration ? % >
Which totally breaks the code.
I had to take "Format On Save" feature off.
I have following ERB code extension: Simple Ruby ERB v0.2.1
How to solve that so I can start using "Format On Save" again with confidence? Is there easy way to tell which formatter does that change so I can get rid of it?
Upvotes: 0
Views: 22