Skip to content

Auto indent not indenting scopes in html.eex files #65

Description

@kuon

For example, the following code is the result of auto indent with the plugin:

<%=form_for@changeset,@action,fnf->%><%=if@changeset.actiondo%><divclass="alert alert-danger"><p>Oops, something went wrong! Please check the errors below.</p></div><%end %><divclass="form-group"><%=labelf,:name,class: "control-label" %><%=text_inputf,:name,class: "form-control" %><%=error_tagf,:name %></div><divclass="form-group"><%=submit"Submit",class: "btn btn-primary" %></div><%end %>

but it should be formatted like so:

<%=form_for@changeset,@action,fnf->%><%=if@changeset.actiondo%><divclass="alert alert-danger"><p>Oops, something went wrong! Please check the errors below.</p></div><%end %><divclass="form-group"><%=labelf,:name,class: "control-label" %><%=text_inputf,:name,class: "form-control" %><%=error_tagf,:name %></div><divclass="form-group"><%=submit"Submit",class: "btn btn-primary" %></div><%end %>

<%= .... %> with a corresponding <% end %> should be indented.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions