diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-28 14:42:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-28 14:42:27 +0000 |
commit | e0c8ee70b0d6b84f57714a5446e2ecfeca8826b4 (patch) | |
tree | a958c1c720cac88b7740009ea1436b5c356e1eb7 /read.c | |
parent | 6c9bf65b847eba6ae5bf1d6bf9d72a29550bf824 (diff) | |
download | mandoc-e0c8ee70b0d6b84f57714a5446e2ecfeca8826b4.tar.gz |
mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less
than four arguments; there is no reason to treat both differently.
Issue found following a question from Thomas Klausner <wiz at NetBSD>.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -298,7 +298,8 @@ choose_parser(struct mparse *curp) /* Fall back to man(7) as a last resort. */ if (NULL == curp->pman) - curp->pman = man_alloc(curp->roff, curp, + curp->pman = man_alloc( + curp->roff, curp, curp->defos, MPARSE_QUICK & curp->options ? 1 : 0); assert(curp->pman); curp->man = curp->pman; @@ -696,7 +697,8 @@ mparse_end(struct mparse *curp) curp->mdoc = curp->pmdoc; else { if (curp->pman == NULL) - curp->pman = man_alloc(curp->roff, curp, + curp->pman = man_alloc( + curp->roff, curp, curp->defos, curp->options & MPARSE_QUICK ? 1 : 0); curp->man = curp->pman; } @@ -940,7 +942,8 @@ mparse_alloc(int options, enum mandoclevel wlevel, mandocmsg mmsg, curp->roff, curp, curp->defos, curp->options & MPARSE_QUICK ? 1 : 0); if (curp->options & MPARSE_MAN) - curp->pman = man_alloc(curp->roff, curp, + curp->pman = man_alloc( + curp->roff, curp, curp->defos, curp->options & MPARSE_QUICK ? 1 : 0); return(curp); |