-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmt command gives "semantic difference after formatting" error for multi-line values #126
Comments
I think this is fixed by #117, which hasn't been released yet. |
@ericzbeard
I found these multi-line issues caused by go-yaml.v3 generating empty line without indent before formating. Line 43 in e889d62
I tested in go playground. Not sure where it was specificated in YAML 1.1 spec, but it seems good to follow go.yaml.v3 implementation to treat empty line without indentation as multi-line string. I create PR. Thanks. |
Treat empty line without indentation as multi-line string #126
@ugwis Thanks for the contribution! This will be included in v1.4 |
rain fmt command does not work with multi-line yaml
Using this CF template
running ./rain --version
when the fmt command is run
The text was updated successfully, but these errors were encountered: