Skip to content

Heredocs in blocks result in invalid code #326

Description

@jbarber

With rufo 0.18.0 the following code:

def foo
  puts yield
end

foo do <<-EOS
Random text
EOS
end

is formatted to:

def foo
  puts yield
end

foo do <<-EOS
Random text
EOS end

which is no longer valid ruby code.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions