Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-line blocks are formatted but single-line ERB tags are not #1

Open
taylorthurlow opened this issue Feb 9, 2021 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@taylorthurlow
Copy link

Here's an example html.erb file:

<%= link_to 'New Order', new_order_path, class: "btn btn-success" %>
<%=
  select_tag 'integrator',
             options_from_collection_for_select(
               @integrators,
               :id,
               :name,
               params[:integrator],
             ),
             { prompt: 'All Integrators', class: 'dib', style: 'width:100%;' }
%>

This formats the second, multi-line block perfectly, but I can tell the first single-line link_to method call is not because the double-quotes for the class: argument do not change.

@adamzapasnik adamzapasnik self-assigned this Feb 9, 2021
@adamzapasnik adamzapasnik added the enhancement New feature or request label Feb 9, 2021
@adamzapasnik
Copy link
Owner

Good catch. I haven't done it on purpose as I planned to deal with it later. Will fix it over the weekend.

@adamzapasnik
Copy link
Owner

added in a newly released v0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants