Schechter
Schechter

Reputation: 223

Beautify Ruby on Sublime Text2 problems

My "Beautify Ruby" package for Sublime Text 2 is acting really funny. It is indenting for loops 4 spaces and if statements only 2 while all end statements are unindented 2 spaces. My Sublime is set to use 2 spaces for tabs. This is a new problem that seem to happen intermittently. I've uninstalled and reinstalled "Beautify Ruby" but no change.

for n in (0..100) do
    if some_if_statement
      2_spaces_here
    elsif 2_spaces_back
      2_spaces_again
    end
  end # and now the end is not aligned with the for loop?

It also acts strangely in other circumstances but I don't know what the 'rules' for how it's behaving are. For example:

  if numerator/denominator < 0.10
                  return current_num_between_corners -1
                  end

Any thoughts?

Upvotes: 1

Views: 379

Answers (0)

Related Questions