diff options
| author | hachem <im@hachem.wtf> | 2026-10-09 09:19:04 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-09 09:19:04 +0200 |
| commit | bd54bc3e98d780ecf0a28f693aa803f2e46c728a (patch) | |
| tree | 765ec0539f97f890e8213ee119b700d955f22eaf | |
| parent | d32aff437ca91784a10effad18bfcca541b5564b (diff) | |
fix: no periods after .;!?
| -rw-r--r-- | todo.1 | 2 | ||||
| -rw-r--r-- | todo.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -28,7 +28,7 @@ period; sections and important .RB ( ! ) items are capitalized but get no period. Text already capitalized or already ending in -.BR . , " !" " or " ? +.BR . , " !" , " ?" , " ;" " or " : is left as is. The change is to the text itself and is written to the file when you save. .PP @@ -744,7 +744,8 @@ static void apply_prose(struct List* list, int skip) continue; char last = item->text[len - 1]; - if (last != '.' && last != '!' && last != '?' && len + 1 < (int) sizeof item->text) + if (last != '.' && last != '!' && last != '?' && last != ';' && last != ':' && + len + 1 < (int) sizeof item->text) { item->text[len] = '.'; item->text[len + 1] = '\0'; |
