aaubry / YamlDotNet

YamlDotNet is a .NET library for YAML
MIT License
2.48k stars 466 forks source link

YamlDotNet does not write accurately equal to yaml being loaded #892

Open lx1988 opened 5 months ago

lx1988 commented 5 months ago

Example input file any scene from Unity3D. Example code:

var input = new StringReader(File.ReadAllText("Scene1.unity")); var yaml = new YamlStream(); yaml.Load(input); var tw = File.CreateText(sc.path + ".yaml"); yaml.Save(tw,false); Verification shell command: diff Scene1.unity Scene1.unity.yaml ^ got totally different result image

EdwardCooke commented 5 months ago

Please post an example reproduction of the yaml for the problem.