You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the NewLineHandling = NewLineHandline.None is actually the relevant part. Doing OmitXmlDeclaration = false seems to output the multilineTest attribute identically (just make sure to do 2 more reads to skip past the declaration and the whitespace).
The NewLineHandling seems to roundtrip fine, so I'm totally fine with adding that (definitely will make it easier to deal with multi line strings) and if for some reason in the future there's issues caused by it (some naive parser minifying it) we can add an option to turn this back on.
The raw xml is difficult to read with multline strings, as the strings get encoded as hideous xml escapes.
Use "OmitXmlDeclaration = true," in XmlWriterSettings to correct.
Unit test demonstrating loopback in this case:
The text was updated successfully, but these errors were encountered: