We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Yaml with block indent indicator is not parsed corrrectly, the spaces at the beginning are trimmed.
To Reproduce
package main import ( "os" "github.com/goccy/go-yaml/parser" ) func main() { input, err := os.ReadFile("input6.yaml") if err != nil { panic(err) } f, err := parser.ParseBytes(input, 0) if err != nil { panic(err) } _, err = os.Stdout.Write([]byte(f.String())) if err != nil { panic(err) } }
|2- text
Expected behavior
Expected to get the same output as input, but got:
2- text
The yaml should be equivalent to
"\n text"
Version Variables
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Handle block scalar header with both indicators
43e6069
The lexer did not recognize block scalar header with both indentation indicator and chomping indicator. Closes goccy#399
1f6f28a
Successfully merging a pull request may close this issue.
Describe the bug
Yaml with block indent indicator is not parsed corrrectly, the spaces at the beginning are trimmed.
To Reproduce
Expected behavior
Expected to get the same output as input, but got:
The yaml should be equivalent to
"\n text"
Version Variables
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: