Fix MiniYaml parsing of empty comments

This commit is contained in:
Paul Chote
2019-12-19 20:45:27 +00:00
committed by reaperrr
parent aabfd91001
commit 0b8a367867
2 changed files with 5 additions and 2 deletions

View File

@@ -246,10 +246,13 @@ TestB:
{
var yaml = @"
# Top level comment node
#
Parent: # comment without value
# Indented comment node
First: value containing a \# character
Second: value # node with inline comment
Third: value #
Fourth: #
".Replace("\r\n", "\n");
var result = MiniYaml.FromString(yaml, discardCommentsAndWhitespace: false).WriteToString();