diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2023-04-28 20:23:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2023-04-28 20:23:19 +0000 |
commit | af7cf2f399b410f2137967b44e4590c494289ad3 (patch) | |
tree | 4741ec0e988ad21b6eb6acd8cc2094b67efbd627 /man_html.c | |
parent | 0b0554bfc6a91450265f23d89c425a979a42d366 (diff) | |
download | mandoc-af7cf2f399b410f2137967b44e4590c494289ad3.tar.gz |
Do not rewrite MAN_LP and MAN_P to MAN_PP because doing that causes
confusing warning messages complaining about macros that don't even
appear in the input file.
As a welcome side effect, this also shortens the code...
Fixing a minibug
reported by Alejandro Colomar <alx dot manpages at gmail dot com>.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -60,7 +60,6 @@ static int man_SH_pre(MAN_ARGS); static int man_SM_pre(MAN_ARGS); static int man_SY_pre(MAN_ARGS); static int man_UR_pre(MAN_ARGS); -static int man_abort_pre(MAN_ARGS); static int man_alt_pre(MAN_ARGS); static int man_ign_pre(MAN_ARGS); static int man_in_pre(MAN_ARGS); @@ -75,9 +74,9 @@ static const struct man_html_act man_html_acts[MAN_MAX - MAN_TH] = { { man_SH_pre, NULL }, /* SS */ { man_IP_pre, NULL }, /* TP */ { man_IP_pre, NULL }, /* TQ */ - { man_abort_pre, NULL }, /* LP */ + { man_PP_pre, NULL }, /* LP */ { man_PP_pre, NULL }, /* PP */ - { man_abort_pre, NULL }, /* P */ + { man_PP_pre, NULL }, /* P */ { man_IP_pre, NULL }, /* IP */ { man_PP_pre, NULL }, /* HP */ { man_SM_pre, NULL }, /* SM */ @@ -406,7 +405,7 @@ man_PP_pre(MAN_ARGS) if (n->child != NULL && (n->child->flags & NODE_NOFILL) == 0) print_otag(h, TAG_P, "c", - n->tok == MAN_PP ? "Pp" : "Pp HP"); + n->tok == MAN_HP ? "Pp HP" : "Pp"); break; default: abort(); @@ -635,9 +634,3 @@ man_UR_pre(MAN_ARGS) print_man_nodelist(man, n->child, h); return 0; } - -static int -man_abort_pre(MAN_ARGS) -{ - abort(); -} |