Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Resolving Incorrect indent of inline if's, elif's and else's. #165

Closed
wants to merge 2 commits into from

Conversation

iraAlor
Copy link

@iraAlor iraAlor commented Oct 30, 2016

As brought up in #159 when an if statement is inlined e.g.

    if conditional: return 5

No indent is applied as a result when all subsequent else's and elif's de-indent they will placed in the wrong position for example

     if conditional: return 5
   elif: return 90
   else: return 10

This issue was resolved by forcing an indent on all if's, elif's and non-inlined else's.

@iraAlor iraAlor closed this Oct 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant