New issue
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
Different serialization output: three dots in the end of serialized yaml #436
Comments
This is unexpected, and probably a bug. I'll try look into it tomorrow and get back to you. |
This was indeed a bug. The fix will be included in the next release. |
I'm using var yamlStream = new YamlStream(new YamlDocument(
new YamlMappingNode(
new YamlScalarNode("test"), new YamlScalarNode("42"))));
var stringWriter = new StringWriter();
yamlStream.Save(stringWriter);
// stringwriter: "test: 42\r\n...\r\n" Is this indented? Is it possible to disable the emitting of the three dots? Thanks YamlDotNet version: 8.0.0 |
The 3 dots |
It's been a while, and saving with a YamlStream still adds the three dots at the end of the file, is there any way to disable it? |
@geferon and any other person that land here with the 3 dots. Try serialization instead of saving the stream. https://stackoverflow.com/questions/50878627/yamdocument-to-text-representation-end-with-3-dots |
Serialize simple value to yaml:
output:
"42\r\n...\r\n"
(three dots at the end)Serialize array value to yaml:
output:
"- 42\r\n"
(no dots at the end)Question: Why same serialization setup produces different output in the end of document (
...
)?Question: Is it possible to "hide" three dots when converting simple value?
Versions tested:
The text was updated successfully, but these errors were encountered: