Skip to content

Commit

Permalink
Fixed issue where CsvConfiguration.NewLine was being set when value i…
Browse files Browse the repository at this point in the history
…s null in constructor causing IsNewLine to be true.
  • Loading branch information
JoshClose committed Feb 2, 2021
1 parent cdfd5a8 commit 24ce088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CsvHelper/Configuration/CsvConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public CsvConfiguration(
MemberTypes = memberTypes ?? MemberTypes;
MissingFieldFound = missingFieldFound ?? MissingFieldFound;
Mode = mode ?? Mode;
NewLine = newLine ?? NewLine;
if (newLine != null) NewLine = newLine;
PrepareHeaderForMatch = prepareHeaderForMatch ?? PrepareHeaderForMatch;
ProcessFieldBufferSize = processFieldBufferSize ?? ProcessFieldBufferSize;
Quote = quote ?? Quote;
Expand Down

0 comments on commit 24ce088

Please sign in to comment.