Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heredocs in blocks result in invalid code #326

Open
jbarber opened this issue Jul 12, 2024 · 0 comments
Open

Heredocs in blocks result in invalid code #326

jbarber opened this issue Jul 12, 2024 · 0 comments

Comments

@jbarber
Copy link

jbarber commented Jul 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant