mirror of
https://github.com/FourierTransformer/ftcsv.git
synced 2024-11-19 19:54:23 +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
3ba34b333a
@ -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