diff options
author | 2010-04-07 23:15:05 +0000 | |
---|---|---|
committer | 2010-04-07 23:15:05 +0000 | |
commit | b16e7ddfb45035d0816fe95d320f80999a221402 (patch) | |
tree | 64a9e9541a974597adbd3989641fbf3c24fbaed2 /usr.bin/mandoc/man_validate.c | |
parent | Make sure that the sequence .Fl, no argument, and another macro (diff) | |
download | wireguard-openbsd-b16e7ddfb45035d0816fe95d320f80999a221402.tar.xz wireguard-openbsd-b16e7ddfb45035d0816fe95d320f80999a221402.zip |
Merge the good parts of 1.9.23,
avoid the bad parts of 1.9.23, and keep local patches.
Input in general:
* Basic handling of roff-style font escapes \f, \F.
* Quoted punctuation does not count as punctuation.
mdoc(7) parser:
* Make .Pf callable; noted by Claus Assmann.
* Let .Bd and .Bl ignore unknown arguments; noted by deraadt@.
* Do not warn when .Er is used outside certain sections.
* Replace mdoc_node_free[list] by mdoc_node_delete.
* Replace #define by enum for rew*() return values.
man(7) parser:
* When .TH is missing, use default section and date.
Output in general:
* Curly braces do not count as punctuation.
* No space after .Fl w/o args when a macro follows on the same line.
HTML output:
* Unify PAIR_*_INIT macros, introduce new PAIR_ID_INIT().
* Print whitespace after, not before .Vt .Fn .Ft .Fo.
Checked that all manuals in base still build.
Diffstat (limited to 'usr.bin/mandoc/man_validate.c')
-rw-r--r-- | usr.bin/mandoc/man_validate.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c index 7347769d4f1..954849f650c 100644 --- a/usr.bin/mandoc/man_validate.c +++ b/usr.bin/mandoc/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.17 2010/04/03 16:33:01 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.18 2010/04/07 23:15:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -166,7 +166,15 @@ check_root(CHKARGS) if (NULL == m->meta.title) { if ( ! man_nwarn(m, n, WNOTITLE)) return(0); + /* + * If a title hasn't been set, do so now (by + * implication, date and section also aren't set). + * + * FIXME: this should be in man_action.c. + */ m->meta.title = mandoc_strdup("unknown"); + m->meta.date = time(NULL); + m->meta.msec = 1; } return(1); |