We have some code to protect empty lines for roundtripping in YAML files. We should check if https://github.com/goccy/go-yaml/pull/412 has made that redundant, and remove the workaround, if possible. The new fix will be available once #2835 is merged.