Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
calebthompson opened this Issue · 1 comment

2 participants

@calebthompson

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>
@tpope
Owner

Please reopen against vim-ruby.

@tpope tpope closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.