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
When formatting with 0.5.0 (after upgrading from 0.4.2), I saw a surprising number of changed files, and it turns out that the changes are typespecs' arguments list where alternatives now always are split over several lines:
In #53, what happened was that a sequence of alternatives (|) needed to be split over multiple lines, and then all alternatives should be on separate lines, but in this case, it's the arguments (,) that need to be split into separate lines, not the alternatives within an argument.
Hope this made sense. 😄
The text was updated successfully, but these errors were encountered:
erlfmt 0.5.0
(This might be related to #53.)
When formatting with 0.5.0 (after upgrading from 0.4.2), I saw a surprising number of changed files, and it turns out that the changes are typespecs' arguments list where alternatives now always are split over several lines:
Is this intentional? I would expect e.g.
binary() | null
to be left on a single line here like in 0.4.2, so this code would remain like this:In #53, what happened was that a sequence of alternatives (
|
) needed to be split over multiple lines, and then all alternatives should be on separate lines, but in this case, it's the arguments (,
) that need to be split into separate lines, not the alternatives within an argument.Hope this made sense. 😄
The text was updated successfully, but these errors were encountered: