Fourth level blocks indent incorrectly
Bug #939577 reported by
Ryan Kaskel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
This
for x in y:
for z in l:
for r in t:
It seems to happen with all blocks:
while 1:
while 1:
while 1:
and when you mix them:
try:
if True:
while True:
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.5 |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in python-mode: | |
milestone: | 6.0.5 → none |
importance: | Medium → Undecided |
Changed in python-mode: | |
milestone: | 6.0.5 → 6.0.6 |
Changed in python-mode: | |
status: | New → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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