Skip to content

'else' is not dedented in nested 'if' statements #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
audriusk opened this issue Aug 27, 2016 · 1 comment
Closed

'else' is not dedented in nested 'if' statements #56

audriusk opened this issue Aug 27, 2016 · 1 comment
Labels

Comments

@audriusk
Copy link

After 2c38ff0 commit writing else: in nested if statement doesn't dedent it automatically.

if foo:
    if bar:
        baz = True

If we insert new line at the end of this block and start writing else:, it stays at the same indentation level as the line above:

if foo:
    if bar:
        baz = True
        else:  # Should be dedented by one indentation level.
@blueyed
Copy link
Member

blueyed commented Sep 2, 2016

Thanks for the report!

#59 should fix it.

blueyed added a commit that referenced this issue Sep 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants