elixir-editors / elixir-editors/language-elixir
Auto indent not indenting scopes in html.eex files
Open
- Dominant language
- CoffeeScript
- Stars
- 178
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
For example, the following code is the result of auto indent with the plugin:
``` eex
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
Oops, something went wrong! Please check the errors below.
<% end %>
<%= label f, :name, class: "control-label" %>
<%= text_input f, :name, class: "form-control" %>
<%= error_tag f, :name %>
<%= submit "Submit", class: "btn btn-primary" %>
<% end %>
```
but it should be formatted like so:
``` eex
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
Oops, something went wrong! Please check the errors below.
<% end %>
<%= label f, :name, class: "control-label" %>
<%= text_input f, :name, class: "form-control" %>
<%= error_tag f, :name %>
<%= submit "Submit", class: "btn btn-primary" %>
<% end %>
```
`<%= .... %>` with a corresponding <% end %> should be indented.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.