diff options
author | 2011-01-17 00:21:29 +0000 | |
---|---|---|
committer | 2011-01-17 00:21:29 +0000 | |
commit | 2af8a2f06912ddb01e903aed1843aa570e62620c (patch) | |
tree | 5f21cafc1d5642aec10a6119e8bca1aa990c003b /man_html.c | |
parent | bdd57b0f6e96851f88fd7cd70c4267e348d46308 (diff) | |
download | mandoc-2af8a2f06912ddb01e903aed1843aa570e62620c.tar.gz mandoc-2af8a2f06912ddb01e903aed1843aa570e62620c.tar.zst mandoc-2af8a2f06912ddb01e903aed1843aa570e62620c.zip |
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 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.66 2011/01/13 14:30:13 kristaps Exp $ */ +/* $Id: man_html.c,v 1.67 2011/01/17 00:21:29 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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); } |