From bad5084e148ae1a392e3ac1ea96a6217f7f02844 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 14 Dec 2024 07:00:47 +0800 Subject: fix: don't trim the input text (#1056) --- src/cli.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index c3af5cc..2de6113 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -73,12 +73,7 @@ pub struct Cli { impl Cli { pub fn text(&self) -> Option { - let text = self - .text - .iter() - .map(|x| x.trim().to_string()) - .collect::>() - .join(" "); + let text = self.text.to_vec().join(" "); if text.is_empty() { return None; } -- cgit v1.2.3