Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 0703760

Browse files
committed
- Remove occurences of newLine or the configured delimiter from the encoded string
1 parent ec7f7a0 commit 0703760

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/CSVCodable/ExportManager.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ public class ExportManager {
7676

7777
let values = encodedDic.map { objectDic in
7878
objectDic
79-
.map { String(describing: $0.value) }
79+
.map { String(describing: $0.value)
80+
.replacingOccurrences(of: "\n", with: "")
81+
.replacingOccurrences(of: configuration.delimiter, with: "")
82+
}
8083
.joined(separator: configuration.delimiter)
8184
}
8285

0 commit comments

Comments
 (0)