indent explicitly set in multiline tqs
Bug #784225 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Undecided
|
Andreas Roehler |
Bug Description
-----snip snip-----
def foo():
with bar('x', """
[hello]
-----snip snip-----
Put point at the end of the "[hello]" line and hit return. The next line should indent to column 8 but instead it indents to column 18. Normally that would be okay, but because you've explicitly dedented the preceding line, subsequent lines should indent underneath it, i.e. at column 8.
Related branches
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | New → Confirmed |
summary: |
- Dedented TQS indentation bug + explicitly dedented bug |
summary: |
- explicitly dedented bug + explicitly dedented in list bug |
summary: |
- indent explicitly set in multiline + indent explicitly set in multiline tqs |
Changed in python-mode: | |
status: | Confirmed → Fix Committed |
Changed in python-mode: | |
milestone: | none → 6.0 |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Barry,
AFAIU tqs is not at stake here.
Would describe the rule in effect as:
"if inside a list indent is set explicitly, keep that"
Resp. would rename the report into something like:
"keep indent inside lists"
Cheers,
Andreas