goccy / go-yaml

YAML support for the Go language
MIT License
1.12k stars 129 forks source link

trim right spaces before adding carriage return or linefeed #462

Closed mfleader closed 1 month ago

mfleader commented 2 months ago

Using a Carriage Return Line Feed (CRLF) pair prevents the scanner from removing the trailing space characters on a line resulting in an unexpected key name error.

codecov-commenter commented 2 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.65%. Comparing base (b2a8cc6) to head (2e4321a).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #462 +/- ## ======================================= Coverage 78.65% 78.65% ======================================= Files 13 13 Lines 3983 3983 ======================================= Hits 3133 3133 Misses 590 590 Partials 260 260 ```