diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-17 12:40:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-17 12:40:48 +0000 |
commit | a78f7ea60ac3b0e2c941afc20e674fe437317174 (patch) | |
tree | 6c2d30c31b6daa8f4c894581f1d5d02c99c91f51 /mdoc_validate.c | |
parent | 9557817be488da39b7f0e34162706877c0652fc3 (diff) | |
download | mandoc-a78f7ea60ac3b0e2c941afc20e674fe437317174.tar.gz mandoc-a78f7ea60ac3b0e2c941afc20e674fe437317174.tar.zst mandoc-a78f7ea60ac3b0e2c941afc20e674fe437317174.zip |
`sp' documented: validates & produces correct output.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 433ba11a..5d2be450 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.35 2009/07/17 12:27:49 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.36 2009/07/17 12:40:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1138,6 +1138,8 @@ post_sp(POST_ARGS) if (NULL == mdoc->last->child) return(1); + else if ( ! eerr_eq1(mdoc)) + return(0); assert(MDOC_TEXT == mdoc->last->child->type); buf = mdoc->last->child->string; @@ -1150,7 +1152,7 @@ post_sp(POST_ARGS) return(mdoc_nerr(mdoc, mdoc->last->child, ENUMFMT)); if ((errno == ERANGE && (lval == LONG_MAX || lval == LONG_MIN)) || - (lval > INT_MAX || lval < INT_MIN)) + (lval > INT_MAX || lval < 0)) return(mdoc_nerr(mdoc, mdoc->last->child, ENUMFMT)); return(1); |