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
{{ message }}
Repository navigation
emitYAML adds a trailing newline to multi-line strings that have none #5073
Found with chant 0.124.95 while reading a clone of kubernetes/k8s.io at commit 2b3d9153 offline, for #5067.
emitYAML in packages/core/src/yaml.ts writes every string that contains a newline as a | block. A | block always ends with one newline, so a string with no trailing newline gains one on the round trip.
In that repo, 1004 strings in 5 files change: 1000 CRD descriptions in a Flux gotk-components.yaml, the Slack message text in two AlertmanagerConfigs, and ConfigMap data in two files under apps/slack-infra/.
For ConfigMap data and message templates the extra newline is a real change to what gets applied.
Wanted: |- when the string does not end in a newline, | when it ends in exactly one, |+ when it ends in more than one.
Activity
fix: emitYAML keeps a multi-line string's own final newline, |- when …
chore: regenerate the floor table and the fan-out example's workflow …
feat: estate-read batch 4, lint and import fixes, YAML emit, Grafana …