summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-01-17 00:15:19 +0000
committerschwarze <schwarze@openbsd.org>2011-01-17 00:15:19 +0000
commitea2002247d26596e8b1435c1c1499ef7ea1700f5 (patch)
tree6e86d49fc6c1fe09890a9b70b0eb31da68d0c96c /usr.bin/mandoc/man_html.c
parentexplain various points in more detail, and some in easier or (diff)
downloadwireguard-openbsd-ea2002247d26596e8b1435c1c1499ef7ea1700f5.tar.xz
wireguard-openbsd-ea2002247d26596e8b1435c1c1499ef7ea1700f5.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 Sonnenberger, ok kristaps@.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r--usr.bin/mandoc/man_html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c
index e4ec6dcc6e0..046e22af34d 100644
--- a/usr.bin/mandoc/man_html.c
+++ b/usr.bin/mandoc/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.33 2011/01/16 19:41:16 schwarze Exp $ */
+/* $Id: man_html.c,v 1.34 2011/01/17 00:15:19 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -96,7 +96,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 */
@@ -649,7 +649,7 @@ man_literal_pre(MAN_ARGS)
} else
mh->fl &= ~MANH_LITERAL;
- return(1);
+ return(0);
}