Skip to content

Multi-line ERB tags get wrong formatting when the tags are misaligned #71

Description

@danielvlopes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions