Skip to content

indentation doesn't work well with HEREDOC strings in erb #361

Description

@graywolf

When writing eruby file and using HEREDOC syntax, the indentation doesn't work that well. This is what vim produces when using default indentation:

<!DOCTYPE html>
<html>
  <head>
    </title>Foo</title>
  </head>
  <body>
    <%= foo <<~EOF
    EOF
  %>
  </body>

The ending %> is off by one level to the left. I believe it should be like this:

</html>
<!DOCTYPE html>
<html>
  <head>
    </title>Foo</title>
  </head>
  <body>
    <%= foo <<~EOF
    EOF
    %>
  </body>
</html>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions