summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-12 17:08:03 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-12 17:08:03 +0000
commit656e7e24eaab5e2a55266792dc96f1dda724ae25 (patch)
tree6ea05b6ab69313edba6b09b7764c4970afb590e6 /man.c
parent86655cfd384a1fafb7e617962efa806115a2bc51 (diff)
downloadmandoc-656e7e24eaab5e2a55266792dc96f1dda724ae25.tar.gz
mandoc-656e7e24eaab5e2a55266792dc96f1dda724ae25.tar.zst
mandoc-656e7e24eaab5e2a55266792dc96f1dda724ae25.zip
Put the eos-checker into libmandoc.h.
Added bits in mdoc.7 and man.7 about EOS spacing.
Diffstat (limited to 'man.c')
-rw-r--r--man.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/man.c b/man.c
index 99804406..79f2e452 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.65 2010/05/12 16:46:28 kristaps Exp $ */
+/* $Id: man.c,v 1.66 2010/05/12 17:08:03 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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:
/*