hachem.wtf
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-09 09:19:04 +0200
committerhachem <im@hachem.wtf>2026-10-09 09:19:04 +0200
commitbd54bc3e98d780ecf0a28f693aa803f2e46c728a (patch)
tree765ec0539f97f890e8213ee119b700d955f22eaf
parentd32aff437ca91784a10effad18bfcca541b5564b (diff)
fix: no periods after .;!?
-rw-r--r--todo.12
-rw-r--r--todo.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/todo.1 b/todo.1
index 5428632..fbe61e8 100644
--- a/todo.1
+++ b/todo.1
@@ -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
diff --git a/todo.c b/todo.c
index 1ac93e8..ae53e86 100644
--- a/todo.c
+++ b/todo.c
@@ -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';