Skip to content

Commit

Permalink
Fix newline handling for xml document (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Aug 9, 2022
1 parent 070509b commit cf2faa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/serializer-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ The default mapping is:
{
Indent = true,
IndentChars = " ",
NewLineChars = "\r\n",
NewLineChars = "\n",
NewLineHandling = NewLineHandling.Replace
};
using (var writer = XmlWriter.Create(stringBuilder, writerSettings))
Expand Down
2 changes: 1 addition & 1 deletion src/Verify/Serialization/VerifierSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static bool TryGetToString<T>(
{
Indent = true,
IndentChars = " ",
NewLineChars = "\r\n",
NewLineChars = "\n",
NewLineHandling = NewLineHandling.Replace
};
using (var writer = XmlWriter.Create(stringBuilder, writerSettings))
Expand Down

0 comments on commit cf2faa0

Please sign in to comment.