You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Attempting to set CsvConfiguration.Delimiter to \n results in validation error:
The delimiter '
' cannot be a line ending. ('\r', '\n', '\r\n')
To Reproduce
varconfig=newCsvConfiguration(CultureInfo.InvariantCulture){Delimiter="\n",NewLine="~"//Some non line ending character};_csvReader=newCsvReader(reader,config);
Expected behavior
It appears that the CsvConfiguration.Validate method is checking against a hard coded array of line ending characters. The expected behaviour is to allow Delimiter to be \r, \n, or \r\n as long as NewLine is something different.
The text was updated successfully, but these errors were encountered:
Describe the bug
Attempting to set
CsvConfiguration.Delimiter
to\n
results in validation error:The delimiter '
' cannot be a line ending. ('\r', '\n', '\r\n')
To Reproduce
Expected behavior
It appears that the CsvConfiguration.Validate method is checking against a hard coded array of line ending characters. The expected behaviour is to allow
Delimiter
to be\r
,\n
, or\r\n
as long asNewLine
is something different.The text was updated successfully, but these errors were encountered: