From 8b1985c5c875763fb042aced6d170eabce04be2c Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Mon, 7 Sep 2026 14:14:37 +1200 Subject: Don't treat period and comma as whitespace characters when quoting When toaster auto-replaces regular quote characters with directional variants, any quote characters placed after the end of a sentence will now correctly point to the left. --- src/string_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_utils.rs b/src/string_utils.rs index cceb575..3c3b2e6 100644 --- a/src/string_utils.rs +++ b/src/string_utils.rs @@ -107,7 +107,7 @@ pub fn sanitize_text(text: &str, fancy: bool) -> String { true => chars[i + 1], false => ' ', }; - let is_whitespace = |c: char| c.is_whitespace() || "()[].,".contains(c); + let is_whitespace = |c: char| c.is_whitespace() || "()[]".contains(c); match c { '&' => { -- cgit v1.3.1