ruby-formatter / rufo

The Ruby Formatter
MIT License
900 stars 56 forks source link

Heredoc issue: rufo keeps indenting forever #194

Open taw opened 4 years ago

taw commented 4 years ago
describe "Deck legality" do
  def build_deck_of_size(mb, sb)
    parse_decklist <<~EOF
    #{mb}x Forest
    Sideboard
    #{sb}x Mountain
    EOF
  end
end

It keeps reindenting line with Forest. After a few runs it's:

describe "Deck legality" do
  def build_deck_of_size(mb, sb)
    parse_decklist <<~EOF
                                                                                                          #{mb}x Forest
    Sideboard
    #{sb}x Mountain
                   EOF
  end
end
gstamp commented 4 years ago

I'm also seeing this one.

Fuuzetsu commented 3 years ago

Likewise; having to stop using squiggly heredocs...