Comment 1 for bug 939577

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 939577] [NEW] Fourth level blocks indent incorrectly

Am 23.02.2012 16:20, schrieb Ryan Kaskel:
> Public bug reported:
>
> This
>
> for x in y:
> for z in l:
> for r in t:
> pass<--- indents here. Pressing<backspace> dedents eight spaces (i.e. you can go to column 0 in two presess)

Hi,

AFAIU indent of 16 is a legal value here, as different blocks may have
different indent levels.

Not sure it that's true when nested, CC to Barry for this question.

So if smart-indentation is on, it sets py-indent-offset at 8 at this point.

Setting py-smart-indentation nil should solve that for the moment.

[ ... ]

Andreas