summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/man_html.c b/man_html.c
index 0f6d2376..eabbde06 100644
--- a/man_html.c
+++ b/man_html.c
@@ -198,10 +198,10 @@ print_man_node(MAN_ARGS)
break;
case (MAN_TEXT):
print_text(h, n->string);
-
if (MANH_LITERAL & mh->fl)
print_otag(h, TAG_BR, 0, NULL);
-
+ return;
+ case (MAN_TBL):
return;
default:
/*
@@ -226,17 +226,10 @@ print_man_node(MAN_ARGS)
bufinit(h);
- switch (n->type) {
- case (MAN_ROOT):
+ if (MAN_ROOT == n->type)
man_root_post(m, n, mh, h);
- break;
- case (MAN_TEXT):
- break;
- default:
- if (mans[n->tok].post)
- (*mans[n->tok].post)(m, n, mh, h);
- break;
- }
+ else if (mans[n->tok].post)
+ (*mans[n->tok].post)(m, n, mh, h);
}