Skip to content
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

else: is not automatically dedented #19

Closed
jontaa opened this issue May 2, 2019 · 4 comments · Fixed by #27
Closed

else: is not automatically dedented #19

jontaa opened this issue May 2, 2019 · 4 comments · Fixed by #27
Labels
enhancement New feature or request indentation

Comments

@jontaa
Copy link

jontaa commented May 2, 2019

When doing an if-else statement in python the if and the else should be on the same indention level.

This is how it looks today when doing no manual indentation

if value == True:
    print("something")
    else: 
        print("something")

This is how the expected behavior should be

if value == True:
    print("something")
else: 
    print("something")

Right now I need to manually indent the else: one step to the left.

@kbrose
Copy link
Owner

kbrose commented May 2, 2019

@jontaa I think some formatting may have been lost. You can reference https://guides.github.com/features/mastering-markdown/ to learn more about using markdown on GitHub.

@kbrose kbrose added enhancement New feature or request indentation labels May 2, 2019
@jontaa
Copy link
Author

jontaa commented May 6, 2019

Sorry for that. I have updated the formatting now.

@kbrose kbrose changed the title else: is not automatically indented else: is not automatically dedented Jun 25, 2019
@kbrose
Copy link
Owner

kbrose commented Jun 25, 2019

This will likely be resolved by #27, but the change is fairly intrusive in a part of the code I don't know how to unit test so I want to do more testing before I release.

@kbrose
Copy link
Owner

kbrose commented Jun 26, 2019

This feature was released in v0.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request indentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants