Sublime Forum

[BUG] New autoIndent indenting the same line twice

#1

Create a new Python script or open an existing one. Type:if something:[enter]passThe code shows up as:if something: passNow go back to the end of the first line and add[enter]else:When the colon after the ‘else’ is typed, the indentation of the whole line is decreased by one tab so that the ‘else’ is right below the ‘if’, but at the same time the ‘pass’ is indented by one more tab, which should not happen:if something: else: pass

0 Likes

#2

That doesn’t happen to me…
I get the proper indent.

I’m using 20100528

if something: else: pass

0 Likes

#3

This appears to be due to turning trimAutomaticWhitespace off, I’ll fix that for the next beta

0 Likes