Skip to content

Commit

Permalink
Fix parsing of CSVs
Browse files Browse the repository at this point in the history
Before CSVv0.7.8, empty lines were read with missing values and the last_values_line looked for the missing row. Now, look for end of the files or for "Table" to indicate end of subtable
  • Loading branch information
alecloudenback committed Mar 2, 2021
1 parent b930e64 commit 45694b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ end

function last_values_line(lines,startline)
for i in startline:lastindex(lines)
if ismissing(lines[i][1])
if ismissing(lines[i][1]) | startswith(lines[i][1], "Table")
return i - 1
end
end
Expand Down

0 comments on commit 45694b3

Please sign in to comment.