mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
Filters out empty lines before table creation.
This commit is contained in:
parent
38225d0dba
commit
0b210ce5bf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue