summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'man.c')
-rw-r--r--man.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/man.c b/man.c
index ce67992e..a484c175 100644
--- a/man.c
+++ b/man.c
@@ -428,20 +428,8 @@ man_ptext(struct man *m, int line, char *buf)
assert(i);
- switch (buf[i - 1]) {
- case ('.'):
- if (i > 1 && '\\' == buf[i - 2])
- break;
- /* FALLTHROUGH */
- case ('!'):
- /* FALLTHROUGH */
- case ('?'):
+ if (mandoc_eos(buf, (size_t)i))
m->last->flags |= MAN_EOS;
- break;
- default:
- break;
-
- }
descope:
/*