google / google/yamlfmt

Preserve and force single inner spaces in inline arrays `[ "a", "b" ]`

Open
#310 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Please add an option to preserve, and optionally force, exactly 1 leading space after `[` and 1 trailing space before `]` for inline (flow) arrays.

Example:
```yaml
# desired
python: [ "3.13", "3.14" ]

# current (yamlfmt)
python: ["3.13", "3.14"]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.