mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03: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,
|
headerless: bool,
|
||||||
tag: impl Into<Tag>,
|
tag: impl Into<Tag>,
|
||||||
) -> Option<Tagged<Value>> {
|
) -> Option<Tagged<Value>> {
|
||||||
let mut lines = s.lines();
|
let mut lines = s.lines().filter(|l| !l.is_empty());
|
||||||
|
|
||||||
let headers = lines
|
let headers = lines
|
||||||
.next()?
|
.next()?
|
||||||
|
|
Loading…
Reference in a new issue