You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On this nested if expression, the first pass of elm-format removes the parens, and the second pass removes the indentation.
f =if x then
y
else(if a then
b
else
c
)
First pass:
f =if x then
y
elseif a then
b
else
c
Second pass:
f =if x then
y
else if a then
b
else
c
While looking to see if this already was reported, I found #427, which proposes preserving indentation like the first pass above. I like that idea, as I was originally trying to format some logic with the same kind of symmetry described there when I came across this non-idempotent behavior.
Thank you for such a wonderful tool that has given me much comfort and saved me countless hours over the years!
Justin
The text was updated successfully, but these errors were encountered:
On this nested
if
expression, the first pass ofelm-format
removes the parens, and the second pass removes the indentation.First pass:
Second pass:
While looking to see if this already was reported, I found #427, which proposes preserving indentation like the first pass above. I like that idea, as I was originally trying to format some logic with the same kind of symmetry described there when I came across this non-idempotent behavior.
Thank you for such a wonderful tool that has given me much comfort and saved me countless hours over the years!
Justin
The text was updated successfully, but these errors were encountered: