forked from extern/nushell
Filters out empty lines before table creation.
This commit is contained in:
parent
38225d0dba
commit
0b210ce5bf
@ -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()?
|
||||
|
Loading…
Reference in New Issue
Block a user