Sublime Forum

Reindent broken?

#1

In 2125, reindenting this Ruby:

class NilClass
  def current_user
    User.find 475
  end
end

Does this:


class NilClass
	def current_user
		User.find 475
		end
		end
0 Likes

#2

This behavior persists in 2139 for python.

Also check out the indentation guides after reindentation. Looks like they are off by a little bit.

Here is a screenshot demonstrating when reindenting.

screencast.com/t/QoP7pbUkHXC

0 Likes

#3

Can confirm it in 2139 also, (working with less files):

Say I have

.header {
    
}
:after {
    content: "";
    display: block;
}

And I need to nest the :after inside .header, so, I cut and paste the :after block, and the result is the following:

.header {
    :after {
    content: "";
    display: block;
}
}

But it should be

.header {
    :after {
        content: "";
        display: block;
    }
}
0 Likes