rubyfmt produces invalid ruby on some multi-line strings
Closed this issue · 1 comments
maxjacobson commented
- Ruby version: 2.7.6
- Rubyfmt git sha: 0.8.0 via homebrew today
Input file
RSpec.describe do
it 'my' \
'long' \
'string' do
expect(true).to be false
end
end
Rubyfmt's output
RSpec.describe do
it "my" \
"long" \
"string" do
expect(true).to(be(false))
end
end
This breaks because
This is not valid ruby syntax (the extra blank line throws things off).
maxjacobson commented
Ah, this seems to work in 0.8.1. Whoops! I assumed I had the latest via homebrew.