Create a new Python script or open an existing one. Type:if something:[enter]pass
The code shows up as:if something:
pass
Now 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
[BUG] New autoIndent indenting the same line twice
Chortos-2
#1
0 Likes
gpfsmurf
#2
That doesn’t happen to me…
I get the proper indent.
I’m using 20100528
if something:
else:
pass
0 Likes
jps
#3
This appears to be due to turning trimAutomaticWhitespace off, I’ll fix that for the next beta
0 Likes