summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-14 14:09:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-14 14:09:13 +0000
commit2c007cf07ebf64bc30ad05e3d9ee10e333cfa60c (patch)
tree4a53a897ed8e547b4c357b69e649182d8da15c52 /mandoc.c
parent7309f0de77a908a98032b0508c2d2b426c244099 (diff)
downloadmandoc-2c007cf07ebf64bc30ad05e3d9ee10e333cfa60c.tar.gz
Block-implicit macros now up-propogate end-of-sentence spacing. NOTE: GROFF IS NOT SMART ENOUGH TO DO THIS.
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index 6677295e..ce480a9f 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -305,7 +305,8 @@ int
mandoc_eos(const char *p, size_t sz)
{
- assert(sz);
+ if (0 == sz)
+ return(0);
switch (p[(int)sz - 1]) {
case ('.'):