Skip to content

Commit

Permalink
Merge branch 'line-breaks-crlf' of https://github.com/kpstolk/CsvHelper
Browse files Browse the repository at this point in the history
… into kpstolk-line-breaks-crlf
  • Loading branch information
JoshClose committed Mar 20, 2019
2 parents 58f4810 + ee79a14 commit 4b044ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CsvHelper/CsvSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ public virtual void WriteLine()
{
// Don't forget about the async method below!

context.Writer.WriteLine();
context.Writer.Write("\r\n");
}

/// <summary>
/// Writes a new line to the CSV file.
/// </summary>
public virtual async Task WriteLineAsync()
{
await context.Writer.WriteLineAsync().ConfigureAwait(false);
await context.Writer.WriteAsync("\r\n").ConfigureAwait(false);
}

/// <summary>
Expand Down

0 comments on commit 4b044ec

Please sign in to comment.