Indentation of continuation lines seems wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Opinion
|
Undecided
|
Andreas Roehler |
Bug Description
I think python-mode should use the normal block indentation offset to indent continuation
lines. Currently, continuation lines are indented to the first character after the first space
(I think):
def f(val):
# current behavior - indent to just after the first space
In this world of descriptive names, other indentation pushing things to the right, the LHS of
the assignment doesn't actually have to be very long for you to waste a lot of white space
to the left.
I would prefer if the normal indentation offset was used:
def f(val):
# desired behavior - indent by the normal amount
val
Related branches
- python-mode.el developers: Pending requested
-
Diff: 5004 lines (+2516/-1849)5 files modifiedUnicodeEncodeError-lp:550661-test.py (+4/-0)
py-bug-numbered-tests.el (+738/-245)
python-mode-test.el (+202/-0)
python-mode-tests.sh (+88/-0)
python-mode.el (+1484/-1604)
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | New → Opinion |
Hi Skip,
would prefer to link an indent inside a compound statement to a specific indent indicating that - ie 4 commonly.
Other linebreaks should differ from that
In your example an alternative would be an indent of 1 or 2.
So far just my opinion.
Andreas