language-python icon indicating copy to clipboard operation
language-python copied to clipboard

Inline If..elif..else indenting wrong

Open DragonFerocity opened this issue 7 years ago • 20 comments

In Atom,

If I inline an if..elif..else block, Atom unindents the following elif..else blocks after the if block

DragonFerocity avatar Sep 27 '16 22:09 DragonFerocity

The same issue for me :( I have for example next code: 2017-06-04 17-10-30 Then I just add any one symbol into elif line: 2017-06-04 17-10-45

Kycko avatar Jun 04 '17 14:06 Kycko

This appears to be the same as my incorrectly filed issue. elif appears to always unindent one level further than the line above it, even if that line is a comment or an inline if.

ShadowLNC avatar Jun 06 '17 03:06 ShadowLNC

Same here. If I write a comment and an elif statement in the next line, it incorrectly goes back one indent level.

ghost avatar Jul 03 '17 16:07 ghost

I have this happen, but instead it unindents all the way back.

EnderDas avatar Sep 21 '17 10:09 EnderDas

Same problems.

oceanicdev avatar Sep 22 '17 18:09 oceanicdev

Same problem.

GuillaumeDesforges avatar Oct 17 '17 11:10 GuillaumeDesforges

Poke! Having the same issue

wotann07 avatar Oct 18 '17 13:10 wotann07

Seeing the same issue.

arnavs avatar Oct 20 '17 14:10 arnavs

Same.

benhubsch avatar Oct 28 '17 15:10 benhubsch

Same problem here.

hsalas avatar Nov 08 '17 04:11 hsalas

I'm also experiencing this issue.

MTPeyton avatar Nov 11 '17 20:11 MTPeyton

I have the same issue. any fix on that? It is super inconvinient.

scotthuang1989 avatar Nov 16 '17 02:11 scotthuang1989

Same here. Also with else.

naquiroz avatar Nov 16 '17 18:11 naquiroz

It's been a year since the issue was reported and it still exists. Both elif and else gets indent reset when they are used after a return statement

Niezbedny avatar Nov 21 '17 15:11 Niezbedny

Bumping this since it's still happening.

ghost avatar Nov 24 '17 14:11 ghost

This is still an issue

samsafadi avatar Dec 04 '17 07:12 samsafadi

switch to magicpython as suggested. everything works fine so far.

scotthuang1989 avatar Dec 04 '17 15:12 scotthuang1989

Same issue

nitipit avatar Jan 18 '18 16:01 nitipit

Me too

markmbaum avatar Jan 19 '18 15:01 markmbaum

Yikes...

iquizzle avatar Mar 02 '18 00:03 iquizzle