Skip to content

Incorrect handling of <%- ERB tag #335

@philipce

Description

@philipce

Description

When formatting ERB templates, rufo incorrectly modifies <%- tags by introducing a space between <% and the -, resulting in invalid syntax.

For example, the following snippet:

<%- if controller_name != "sessions" %>

becomes

<% -if controller_name != "sessions" %>

and results in syntax errors when the view is rendered.

Versions

rufo 0.18.0
ruby 3.3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions