Open KylePDavis opened 10 years ago
I agree it is hard to claim beautification in this case. There should be a better way and better output.
In the next release, I plan to implement "one-line objects" - #315. Some improved processing for multiline expressions like these may fall out of that effort.
In the case of multiple arguments to a function call like this:
... it produces:
However, when using simple values like this:
... it leaves the multiline formatting in tact like you'd expect.
Then, things get really weird when you mix simple values and objects on multiple lines like this:
... it gives something like this:
You get similar behavior when you mix arrays in, too, so for something like this:
... it produces this:
I'm sure that there are some people who prefer this styling but it rattles my sense of balance. I'd much prefer if I could keep the alignment of the opening and closing characters.
Maybe we could create an option to suppress this line joining behavior for multi-arg function calls.