summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-17 00:21:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-17 00:21:29 +0000
commit1ab2580800b13bb68e001c47a587d8abe1c2559f (patch)
treeb8a567ef09369b86df47032bd56f1bb8286fcf91 /man_term.c
parent4043e37d694af94a270f16519fc2fec07e918b37 (diff)
downloadmandoc-1ab2580800b13bb68e001c47a587d8abe1c2559f.tar.gz
Refrain from throwing fatal errors for
* .br .sp .nf .fi .na with arguments - just skip the arguments * .TH lacking arguments - use empty strings instead like groff * .TH with excessive arguments - skip those Reminded by joerg@, ok kristaps@.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index 5459bb4f..763d6556 100644
--- a/man_term.c
+++ b/man_term.c
@@ -126,7 +126,7 @@ static const struct termact termacts[MAN_MAX] = {
{ pre_I, NULL, 0 }, /* I */
{ pre_alternate, NULL, 0 }, /* IR */
{ pre_alternate, NULL, 0 }, /* RI */
- { NULL, NULL, MAN_NOTEXT }, /* na */
+ { pre_ign, NULL, MAN_NOTEXT }, /* na */
{ pre_sp, NULL, MAN_NOTEXT }, /* sp */
{ pre_literal, NULL, 0 }, /* nf */
{ pre_literal, NULL, 0 }, /* fi */
@@ -255,7 +255,7 @@ pre_literal(DECL_ARGS)
else
mt->fl &= ~MANT_LITERAL;
- return(1);
+ return(0);
}
/* ARGSUSED */