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

end tags being grouped #46

Open
luizkowalski opened this issue Feb 23, 2024 · 1 comment
Open

end tags being grouped #46

luizkowalski opened this issue Feb 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@luizkowalski
Copy link

Hey, I have a rather complex form like this: https://gist.github.com/luizkowalski/6b90e9cf978927a6faca15258f7c7a24

this page was formatted using htmlbeautifier. When I try to format it with erb-formatter, it groups end together in a really weird way:

<%= tag.label class: "mt-1" do %>
  <%= t("messages.strength") %>
  <%= tag.span class: "ml-1 font-bold", data: { password_strength_target: "destination" } %>
<% end %><% end %><%= tag.div class: "form-control mt-4 w-fit" do %>
...
<% end %><% end %><%= tag.div class: "form-control mt-2" do %>

I'm using the following options:
--stdin-filename", "{path}", "--print-width", "250

@elia elia added the bug Something isn't working label Feb 26, 2024
@elia elia self-assigned this Feb 26, 2024
@elia
Copy link
Member

elia commented Feb 26, 2024

This is a legit bug, thanks for reporting! I'll look into it if I get a chance 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants