diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-14 19:23:58 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-14 19:23:58 +0000 |
commit | a067fc75956a25725c91bbfc0130ab038867c888 (patch) | |
tree | 5ca0d4cb37d49bf973c372a32fab6dec9cbfe90a /man_html.c | |
parent | 857e034db681b3005c938654ecbd7e973cc29908 (diff) | |
download | mandoc-a067fc75956a25725c91bbfc0130ab038867c888.tar.gz mandoc-a067fc75956a25725c91bbfc0130ab038867c888.tar.zst mandoc-a067fc75956a25725c91bbfc0130ab038867c888.zip |
Initial check-in of -man -Thtml \f support (needs testing).
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 <kristaps@kth.se> * @@ -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); |