mirror of
https://github.com/FourierTransformer/ftcsv.git
synced 2024-12-16 05:24:21 +00:00
Merge pull request #2 from Robert-M-Muench/patch-1
Delmiter was not taken into account for Headers
This commit is contained in:
commit
16c078cf89
@ -442,7 +442,7 @@ function ftcsv.encode(inputTable, delimiter, options)
|
||||
newHeaders[i] = headers[i]
|
||||
end
|
||||
end
|
||||
output[1] = '"' .. table.concat(newHeaders, '","') .. '"\r\n'
|
||||
output[1] = '"' .. table.concat(newHeaders, '"' .. delimiter .. '"') .. '"\r\n'
|
||||
|
||||
-- add each line by line.
|
||||
for i, line in writer(inputTable, delimiter, headers) do
|
||||
|
Loading…
Reference in New Issue
Block a user