mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-07 12:05:34 +00:00
fix(stdin): trim entry newlines when streaming from stdin (#121)
This commit is contained in:
parent
11da96d7fb
commit
9809e742d8
@ -45,7 +45,7 @@ fn stream_from_stdin(injector: &Injector<String>) {
|
|||||||
match stdin.read_line(&mut buffer) {
|
match stdin.read_line(&mut buffer) {
|
||||||
Ok(c) if c > 0 => {
|
Ok(c) if c > 0 => {
|
||||||
if !buffer.trim().is_empty() {
|
if !buffer.trim().is_empty() {
|
||||||
injector.push(buffer.clone(), |e, cols| {
|
injector.push(buffer.trim().to_string(), |e, cols| {
|
||||||
cols[0] = e.clone().into();
|
cols[0] = e.clone().into();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user