Indentation in erb breaks for nested <% %> tags #231

Closed
calebthompson opened this Issue Mar 19, 2013 · 1 comment

Comments

Projects
None yet
2 participants

Indentation for erb's <% %> tags breaks when nested within html tags.

When I write this code:

<nav class='header'>
  <% if current_user.present? %>
    <a href='/sign_out'>Sign out</a>
  <% end %>
</nav>

And run gg=G to indent the entire file, vim dedents the <% end %> tag to this result:

<nav class='header'>
  <% if current_user.present? %>
    <a href='/sign_out'>Sign out</a>
<% end %>
</nav>
Owner

tpope commented Mar 22, 2013

Please reopen against vim-ruby.

@tpope tpope closed this Mar 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment