User-multilined method chains and binaries won't stay multilined
Closed this issue · 0 comments
reese commented
- Rubyfmt git sha: ed99cc4
Input file
foo
.bar
.baz
foo &&
bar ||
baz
Rubyfmt's output
foo.bar.baz
foo && bar || baz
This breaks because
For other "breakable" constructs like method params, array literals, etc., we use the multiline form if the user originally multilined it, but we don't do this for method chains and binaries since they have "special" multilining implementations (e.g. they don't use breakable_of
internally). For consistency's sake, we should multiline user-multilined constructs for these.