From 9809e742d86443950800854042013ae80094584e Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier <47638216+alexpasmantier@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:35:10 +0100 Subject: [PATCH] fix(stdin): trim entry newlines when streaming from stdin (#121) --- crates/television-channels/src/channels/stdin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/television-channels/src/channels/stdin.rs b/crates/television-channels/src/channels/stdin.rs index 51ecd3e..2fb1581 100644 --- a/crates/television-channels/src/channels/stdin.rs +++ b/crates/television-channels/src/channels/stdin.rs @@ -45,7 +45,7 @@ fn stream_from_stdin(injector: &Injector) { match stdin.read_line(&mut buffer) { Ok(c) if c > 0 => { if !buffer.trim().is_empty() { - injector.push(buffer.clone(), |e, cols| { + injector.push(buffer.trim().to_string(), |e, cols| { cols[0] = e.clone().into(); }); }