diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-23 11:30:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-23 11:30:48 +0000 |
commit | 664c21875228ae7f241f792abcc521bc64e42067 (patch) | |
tree | 074094c1be5f19d158836e09aeed7fabc1aca3ce /man_html.c | |
parent | 1850b321257c0b341f90c8d3c259ac54899376e6 (diff) | |
download | mandoc-664c21875228ae7f241f792abcc521bc64e42067.tar.gz |
Support for pod2man standard header macros (Vb, Ve, Sp). Based largely on a set of patches by Ingo Schwarze.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -103,6 +103,9 @@ static const struct htmlman mans[MAN_MAX] = { { man_ign_pre, NULL }, /* DT */ { man_ign_pre, NULL }, /* UC */ { man_ign_pre, NULL }, /* PD */ + { man_br_pre, NULL }, /* Sp */ + { man_ign_pre, NULL }, /* Vb */ + { NULL, NULL }, /* Vi */ }; @@ -341,10 +344,18 @@ man_br_pre(MAN_ARGS) SCALE_VS_INIT(&su, 1); - if (MAN_sp == n->tok && n->child) - a2roffsu(n->child->string, &su, SCALE_VS); - else if (MAN_br == n->tok) + switch (n->tok) { + case (MAN_Sp): + SCALE_VS_INIT(&su, 0.5); + break; + case (MAN_sp): + if (n->child) + a2roffsu(n->child->string, &su, SCALE_VS); + break; + default: su.scale = 0; + break; + } bufcat_su(h, "height", &su); PAIR_STYLE_INIT(&tag, h); |