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
As for [{...}] it will already preserve that style, but actually enforcing the style is a feature request. As for the actual logic, I suppose you're asking for the newlines to be removed for single element arrays of the form [ expr (optional comma) ]
It's quite easy to write a pass in formatter.cpp to implement that.
sparkprime
changed the title
Curly brace mis-indented
Formatter should handle [{...}] better
Oct 17, 2016
jsonnet fmt changed the following code from:
to:
which is mis-indented. My personal taste would have had the whole thing turned to:
The text was updated successfully, but these errors were encountered: