Skip to content

preserve multiline single-entry iterables#8663

Draft
unichronic wants to merge 1 commit into
open-policy-agent:mainfrom
unichronic:fixindent
Draft

preserve multiline single-entry iterables#8663
unichronic wants to merge 1 commit into
open-policy-agent:mainfrom
unichronic:fixindent

Conversation

@unichronic
Copy link
Copy Markdown

Fixes #8557.

opa fmt collapsed single-entry arrays/objects into one line even when the original source spanned multiple rows, making deeply nested structures hard to read. This maintains the structure.

Signed-off-by: unichronic <ishuvam.pal@gmail.com>
@unichronic unichronic marked this pull request as draft May 16, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fmt: respect existing indentation in single-item collections

1 participant