Require sentence separator be followed by whitespace

pull/214/head
M66B 1 year ago
parent ceb27b6941
commit e4443c7062

@ -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)))

Loading…
Cancel
Save