Skip to content

Heredocs in blocks result in invalid code #326

@jbarber

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.

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