wrong guess for py-indent-offset due to backslash continuation
Bug #852052 reported by
Georg Brandl
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
The indent offset shouldn't be guessed from backslash continuations. I have
from long.pkg.name import long, list, of, \
class, and, function, names
(note there are five spaces before "class", to match with the start of the pkg name.)
Since the indent of backlash-continued lines has no meaning for code, it should not be considered.
Changed in python-mode: | |
milestone: | none → 6.0.3 |
status: | Incomplete → In Progress |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Georg,
need a rule for that.
- a special imports rule?
or
- indent all continuation lines after first whitespace?
BTW we have several indent rules meanwhile, which don't effect execution.
Thanks,
Andreas