From 45694b32309d99bdbaf5fa058a41d70a3ff233e6 Mon Sep 17 00:00:00 2001 From: Alec Loudenback Date: Mon, 1 Mar 2021 21:41:13 -0600 Subject: [PATCH] Fix parsing of CSVs 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 --- src/CSV.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSV.jl b/src/CSV.jl index 89f4c55..1e84651 100644 --- a/src/CSV.jl +++ b/src/CSV.jl @@ -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