[Python-mode] [Bug 873372] [NEW] Comment indented incorrectly after inline comment

Andreas Röhler andreas.roehler at online.de
Thu Oct 13 18:41:52 CEST 2011


Am 13.10.2011 16:37, schrieb Barry Warsaw:
> On Oct 13, 2011, at 02:18 PM, Ryan Kaskel wrote:
>
>> Another little comment bug:
>>
>> ---------------------
>> foo = True # the next line is indented incorrectly
>>             # to here
>> ----------------------
>>
>> I think it should line up with 'f' in 'foo'.
>
> I'm not sure I agree entirely.  I tend to avoid these types of comments, but I
> think this one is worth a discussion on the mailing list.
>

so cc to it.

I'm in favor of the present behavior BTW.

However agree, there are two reasonable positions of a following indent.

Would support a request that way:

when cursor is at the indented comment in second line, a dedent should 
reach the column 0.

Agreed?






More information about the Python-mode mailing list