Require sentence separator be followed by whitespace

This commit is contained in:
M66B 2023-09-05 16:57:39 +02:00
parent ceb27b6941
commit e4443c7062
1 changed files with 2 additions and 1 deletions

View File

@ -744,7 +744,8 @@ public class FragmentCompose extends FragmentBase {
int start = save;
while (start > 0 &&
text.charAt(start - 1) != '\n' &&
!Helper.isSentenceChar(text.charAt(start - 1)))
!(Character.isWhitespace(text.charAt(start)) &&
Helper.isSentenceChar(text.charAt(start - 1))))
start--;
while (start < save)
if (Character.isWhitespace(text.charAt(start)))