Replaced improper uses of newlines in Serializer with comma characters

This commit is contained in:
Caleb Kleveter 2019-04-29 16:00:31 -05:00
parent caad9866a8
commit 6969d1f4e5
No known key found for this signature in database
GPG Key ID: B38DBD5CF2C98D69
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public struct Serializer {
if !self.serializedHeaders {
let headers = data.keys.map { title in Array([[34], title.bytes, [34]].joined()) }
do { try self.onRow(Array(headers.joined(separator: [10]))) }
do { try self.onRow(Array(headers.joined(separator: [44]))) }
catch let error { errors.errors.append(error) }
self.serializedHeaders = true
}
@ -107,7 +107,7 @@ public struct Serializer {
let cells = data.values.map { column -> [UInt8] in
return Array([[34], column[index].bytes, [34]].joined())
}
do { try onRow(Array(cells.joined(separator: [10]))) }
do { try onRow(Array(cells.joined(separator: [44]))) }
catch let error { errors.errors.append(error) }
}