Filters out empty lines before table creation.

This commit is contained in:
Thomas Hartmann 2019-10-14 07:48:19 +02:00
parent 38225d0dba
commit 0b210ce5bf

View file

@ -38,7 +38,7 @@ fn from_ssv_string_to_value(
headerless: bool,
tag: impl Into<Tag>,
) -> Option<Tagged<Value>> {
let mut lines = s.lines();
let mut lines = s.lines().filter(|l| !l.is_empty());
let headers = lines
.next()?