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
I wonder whether multiline values like
key: | value1 value2
are supported by your library. I always get parse errors trying to read such YAML files.
The text was updated successfully, but these errors were encountered:
What parse errors are you getting? Yes, multiline strings with the syntax you shared are supported by Yams.
Sorry, something went wrong.
Here's a small sample program demonstrating how this is parsed:
let yaml = """ key: | value1 value2 """ let parsedYAML = try! Yams.load(yaml: yaml)! print(parsedYAML) // Prints: // [AnyHashable("key"): "value1\nvalue2"]
Oh, thank you! It turned out that it was just my inability to write YAML files correctly. Sorry for that.
No branches or pull requests
I wonder whether multiline values like
are supported by your library. I always get parse errors trying to read such YAML files.
The text was updated successfully, but these errors were encountered: