SectorUnkown / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Python incorrect indentation - if #706

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start a python file - blank
2. type a if elif statement

For exampls

a = 0
while a < 10:
    a = a + 1
    if a > 5:
        print a," > ",5
    elif a <= 7:
        print a," <= ",7
    else:
        print "Neither test was true"

3. At the end of each if: I press enter

What is the expected output? What do you see instead?
The expected output is as above.

Instead I get

a = 0
while a < 10:
    a = a + 1
    if a > 5:
        print a," > ",5
        elif a <= 7:
            print a," <= ",7
            else:
                print "Neither test was true"

As an aside I selected all text with CTRL+A and then tools -> Reindent but that 
did not change the selected text.

What version of the product are you using? On what operating system?
2.5.3.0 x64 on windows 7 running ActivePython 2.7 64bit

Please provide any additional information below.

Original issue reported on code.google.com by flebber....@gmail.com on 1 Dec 2012 at 11:41