fix: trim whitespace prior to checking if line is empty
This commit is contained in:
parent
da722f3bff
commit
49ff2b33aa
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ fn process_text(
|
||||||
let mut arr = input_text.value.lines().collect::<Vec<_>>();
|
let mut arr = input_text.value.lines().collect::<Vec<_>>();
|
||||||
|
|
||||||
if needs_strip.value {
|
if needs_strip.value {
|
||||||
arr.retain(|&x| !x.is_empty());
|
arr.retain(|&x| !x.trim().is_empty());
|
||||||
needs_strip.value = false;
|
needs_strip.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue