mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
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