From a067fc75956a25725c91bbfc0130ab038867c888 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 14 Nov 2009 19:23:58 +0000 Subject: Initial check-in of -man -Thtml \f support (needs testing). --- man_html.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'man_html.c') diff --git a/man_html.c b/man_html.c index df0527e3..47726a32 100644 --- a/man_html.c +++ b/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.19 2009/11/14 11:58:36 kristaps Exp $ */ +/* $Id: man_html.c,v 1.20 2009/11/14 19:23:58 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -190,14 +190,16 @@ print_man_node(MAN_ARGS) print_text(h, n->string); return; default: + if (h->metaf) { + assert(h->metaf == t); + print_tagq(h, h->metaf); + t = h->tags.head; + } if (mans[n->tok].pre) child = (*mans[n->tok].pre)(m, n, h); break; } - if (child && n->child) - print_man_nodelist(m, n->child, h); - print_stagq(h, t); bufinit(h); -- cgit v1.2.3