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
A string that is "\n" will be encoded as |\n but it should be |+\n at least or rather simply "\n"
"\n"
|\n
|+\n
This code:
Mix.install([{:ymlr, "~> 4.2"}, {:yamerl, "~> 0.10.0"}]) data = %{top: "\n", nested: %{key: "\n"}, correct: "aaa\nbbb"} yaml = data |> Ymlr.document!() IO.puts(yaml) data = :yamerl_constr.string(yaml, str_node_as_binary: true) IO.inspect(data, label: ~S/loadeddata/)
Produces this:
--- top: | nested: key: | correct: |- aaa bbb loadeddata: [[{"top", ""}, {"nested", [{"key", ""}]}, {"correct", "aaa\nbbb"}]]
The text was updated successfully, but these errors were encountered:
Hey @lud-wj
Yes I see the problem. Let me add a few tests here.
Sorry, something went wrong.
Thank you :)
follow up: #160
Successfully merging a pull request may close this issue.
A string that is
"\n"
will be encoded as|\n
but it should be|+\n
at least or rather simply"\n"
This code:
Produces this:
The text was updated successfully, but these errors were encountered: