When someone types two spaces in a row {
if (auto punctuation is turned on) { last_letter_position = the position of the last character in Unicode’s “Letter” category trailing_punctuation = the string between the last_letter_position and the first space
if trailing_punctuation contains none of the characters from sentence_ending_punctuation {
replace the last space with a period
}
}
}
I think the way to fix this is something like:
sentence_ ending_ punctuation = ['.', '!', '?', '…']
When someone types two spaces in a row {
last_letter_ position = the position of the last character in Unicode’s “Letter” category
trailing_ punctuation = the string between the last_letter_ position and the first space punctuation contains none of the characters from sentence_ ending_ punctuation {
if (auto punctuation is turned on) {
if trailing_
replace the last space with a period
}
}
}