diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-02 06:22:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-02 06:22:44 +0000 |
commit | d612b79e06155082b6342af68940fa671568998d (patch) | |
tree | c823b0d3420b6f66b76bf2249667aab2ed2ca0c2 /mdoc_validate.c | |
parent | 768ae2f18e90273f3a363fe0374c8dc61ecff26b (diff) | |
download | mandoc-d612b79e06155082b6342af68940fa671568998d.tar.gz |
Added mandoc_a2time() for proper date conversion.
Fitted TH and Dd handlers to use mandoc_a2time().
Documented date syntax for -man, fixed documentation for -mdoc.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 088bb09a..4a4b834b 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -194,7 +194,7 @@ const struct valids mdoc_valids[MDOC_MAX] = { { NULL, posts_xr }, /* Xr */ { NULL, posts_text }, /* %A */ { NULL, posts_text }, /* %B */ /* FIXME: can be used outside Rs/Re. */ - { NULL, posts_text }, /* %D */ + { NULL, posts_text }, /* %D */ /* FIXME: check date with mandoc_a2time(). */ { NULL, posts_text }, /* %I */ { NULL, posts_text }, /* %J */ { NULL, posts_text }, /* %N */ @@ -808,6 +808,8 @@ static int pre_dt(PRE_ARGS) { + /* FIXME: make sure is capitalised. */ + if (0 == mdoc->meta.date || mdoc->meta.os) if ( ! mdoc_nwarn(mdoc, n, EPROLOOO)) return(0); |