Skip to content

Commit f369b15

Browse files
committed
Adhere to RFC 4180 - line break (#1481)
1 parent ef2eda4 commit f369b15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/FSharp.Data.Csv.Core/CsvRuntime.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ type CsvFile<'RowType>
447447

448448
use writer = writer
449449

450+
// RFC 4180 (https://www.rfc-editor.org/rfc/rfc4180)
451+
// 2. Definition of the CSV Format
452+
// Each record is located on a separated line, delimited by a line break CRLF
453+
writer.NewLine <- "\r\n"
454+
450455
let nullSafeguard str =
451456
match str with
452457
| null -> String.Empty

0 commit comments

Comments
 (0)