From 0b210ce5bf55b91ce88a8706724deeb844953634 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 14 Oct 2019 07:48:19 +0200 Subject: [PATCH] Filters out empty lines before table creation. --- src/commands/from_ssv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/from_ssv.rs b/src/commands/from_ssv.rs index a47a8662f5..41a611f8cf 100644 --- a/src/commands/from_ssv.rs +++ b/src/commands/from_ssv.rs @@ -38,7 +38,7 @@ fn from_ssv_string_to_value( headerless: bool, tag: impl Into, ) -> Option> { - let mut lines = s.lines(); + let mut lines = s.lines().filter(|l| !l.is_empty()); let headers = lines .next()?