CRLFs and Newline

Use the the under laying writer to write a new lines as opposed to
Environment.NewLine which is global.
This commit is contained in:
Richard Schneider
2014-05-11 14:28:17 +12:00
parent 08c87d3ef4
commit f34b85b660
+1 -1
View File
@@ -266,7 +266,7 @@ namespace Newtonsoft.Json
/// </summary>
protected override void WriteIndent()
{
_writer.Write(Environment.NewLine);
_writer.WriteLine();
// levels of indentation multiplied by the indent count
int currentIndentCount = Top * _indentation;