mirror of
https://github.com/geoffleyland/lua-csv.git
synced 2024-11-23 01:34:19 +00:00
Don't skip a line if both columns and header are true
This commit is contained in:
parent
4a7fec836d
commit
b3d3567333
@ -420,7 +420,7 @@ local function separated_values_iterator(buffer, parameters)
|
||||
if not this_sep or this_sep == "\r" or this_sep == "\n" then
|
||||
if parameters.column_map and not header_read then
|
||||
header_read = parameters.column_map:read_header(fields)
|
||||
elseif parameters.header and not header then
|
||||
elseif parameters.header and not header_read then
|
||||
if nonblanks or field_count > 1 then -- ignore blank lines
|
||||
header = fields
|
||||
header_read = true
|
||||
|
Loading…
Reference in New Issue
Block a user