diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-17 00:21:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-17 00:21:29 +0000 |
commit | 1ab2580800b13bb68e001c47a587d8abe1c2559f (patch) | |
tree | b8a567ef09369b86df47032bd56f1bb8286fcf91 /man_html.c | |
parent | 4043e37d694af94a270f16519fc2fec07e918b37 (diff) | |
download | mandoc-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_html.c')
-rw-r--r-- | man_html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,7 +100,7 @@ static const struct htmlman mans[MAN_MAX] = { { man_I_pre, NULL }, /* I */ { man_alt_pre, NULL }, /* IR */ { man_alt_pre, NULL }, /* RI */ - { NULL, NULL }, /* na */ + { man_ign_pre, NULL }, /* na */ { man_br_pre, NULL }, /* sp */ { man_literal_pre, NULL }, /* nf */ { man_literal_pre, NULL }, /* fi */ @@ -663,7 +663,7 @@ man_literal_pre(MAN_ARGS) } else mh->fl &= ~MANH_LITERAL; - return(1); + return(0); } |