[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42513: Python indentation bug when using multi-line on an if-conditi
From: |
Lars Ingebrigtsen |
Subject: |
bug#42513: Python indentation bug when using multi-line on an if-condition |
Date: |
Wed, 27 Jan 2021 07:47:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
swedebugia <swedebugia@riseup.net> writes:
> The following code indents correctly:
> def fun(arg):
> if(
> args.suppliername == "x"):
> #do something
> else:
> #do something
>
> The following code does not indent correctly:
> def fun(arg):
> if(
> args.suppliername == "Messingschlager" or
> args.suppliercodename == "MS"
> ): #<- culprit
> #do something
> else: #<- this else is not possible to indent 1 tab
> #do something
I tried this in Emacs 26.1 and Emacs 28, and both seem to indent the
same, or am I missing something?
Both are wrong, though.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#42513: Python indentation bug when using multi-line on an if-condition,
Lars Ingebrigtsen <=