summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2026-09-07 14:14:37 +1200
committerBen Bridle <bridle.benjamin@gmail.com>2026-09-07 14:14:37 +1200
commit8b1985c5c875763fb042aced6d170eabce04be2c (patch)
tree637c1915bc3de7bb747870a77a5573c86c78a098 /src
parent08a0b9ee5ab9ebb7d45592356d869cfd2bc7dee2 (diff)
downloadtoaster-8b1985c5c875763fb042aced6d170eabce04be2c.zip
Don't treat period and comma as whitespace characters when quotingHEADmain
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.
Diffstat (limited to 'src')
-rw-r--r--src/string_utils.rs2
1 files changed, 1 insertions, 1 deletions
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 {
'&' => {