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 ERB tags get wrong formatting when the tags are misaligned #71

Open
danielvlopes opened this issue May 19, 2022 · 0 comments

Comments

@danielvlopes
Copy link

danielvlopes commented May 19, 2022

Hi there,

On our project, we'll often break our ERB tags into multiple lines to avoid long lines, and whenever an erb tag is not indented properly in the parent HTML tag, when htmlbeautifier is triggered, it will fix the opening of the tag but leave the following lines untouched, creating a misaligned tag.

Is this the expected behavior? Here's a GIF showing the scenario:

CleanShot 2022-05-19 at 10 37 48

Thank you.

@danielvlopes danielvlopes changed the title Multi-line ERB tags get wrong formatting when the tags is misaligned Multi-line ERB tags get wrong formatting when the tags are misaligned May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant