Home Download Buy Blog Forum Support

Reindent broken?

Reindent broken?

Postby Jay Levitt on Wed Sep 28, 2011 3:21 pm

In 2125, reindenting this Ruby:

Code: Select all
class NilClass
  def current_user
    User.find 475
  end
end


Does this:

Code: Select all

class NilClass
   def current_user
      User.find 475
      end
      end
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Reindent broken?

Postby slestak989 on Thu Nov 03, 2011 5:26 pm

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.

http://screencast.com/t/QoP7pbUkHXC
slestak989
 
Posts: 31
Joined: Tue Oct 04, 2011 3:40 am

Re: Reindent broken?

Postby rduenasf on Thu Nov 10, 2011 3:16 am

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

Say I have
Code: Select all
.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:
Code: Select all
.header {
    :after {
    content: "";
    display: block;
}
}


But it should be

Code: Select all
.header {
    :after {
        content: "";
        display: block;
    }
}
rduenasf
 
Posts: 1
Joined: Thu Nov 10, 2011 3:12 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests