Sublime Forum

Bug Report: Ruby indentation broken

#1

Ruby indentation is broken compared to TextMate (I checked that the ST Ruby/Miscellaneous.tmPreferences file is the same as TM Miscellaneous.plist)
Try to cut and then “paste and indent” the “puts e” line in the following to reproduce:

list.each { |e|
  puts e
}
list.each do |e|
  puts e
end
  %w(a b c).each do |e|
    puts e 
  end
    %w(
      a b c
    ).each do |e|
      puts e 
    end

In TM, you get the exact same indentation. In ST:

list.each { |e|
puts e
}
list.each do |e|
puts e
end
  %w(a b c).each do |e|
  puts e 
  end
    %w(
      a b c
    ).each do |e|
puts e 
    end

Can you confirm you can reproduce this?

0 Likes