From f34b85b66099783a523417b1b012305db0a2b920 Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Sun, 11 May 2014 14:28:17 +1200 Subject: [PATCH] CRLFs and Newline Use the the under laying writer to write a new lines as opposed to Environment.NewLine which is global. --- Src/Newtonsoft.Json/JsonTextWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Newtonsoft.Json/JsonTextWriter.cs b/Src/Newtonsoft.Json/JsonTextWriter.cs index 294b6184..85dffbd9 100644 --- a/Src/Newtonsoft.Json/JsonTextWriter.cs +++ b/Src/Newtonsoft.Json/JsonTextWriter.cs @@ -266,7 +266,7 @@ namespace Newtonsoft.Json /// protected override void WriteIndent() { - _writer.Write(Environment.NewLine); + _writer.WriteLine(); // levels of indentation multiplied by the indent count int currentIndentCount = Top * _indentation;