goccy / go-yaml

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

fix: Parse indented newlines correctly #448

Open charithe opened 4 months ago

charithe commented 4 months ago

Fixes the case where an indented newline causes invalid parse results.

Consider the following input where the second line contains an indented new line.

a:·b␊
···␊
c:·d␊

Before this fix, the parser produces the following:

a: null
b
c: d

With this fix, the output is as expected.

a: b
c: d

Before submitting your PR, please confirm the following.

charithe commented 4 months ago

Codecov upload step failed due to rate limiting.