mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
e5679d92ce
The fix that shipped in v1.18.0 had the formatter not just honor newlines when formatting single-item collections, but had them enforced. This is quite a disruptive change leading to previously formatted files to have potentially hundreds of changes upon reformat. This fix ensures that only existing newlines in the source determine whether a single-item collection should be formatted across a single or multiple lines. Signed-off-by: Anders Eknert <anders.eknert@apple.com>