diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-21 14:08:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-21 14:08:13 +0000 |
commit | 40507d223c6573922c1060cde7364f905511b303 (patch) | |
tree | cd7eee10e785f4eb80cbe38dac42b814a488a715 /html.c | |
parent | 29580f6bb757a73803c2045973d9662097988ab1 (diff) | |
download | mandoc-40507d223c6573922c1060cde7364f905511b303.tar.gz |
Fix height of hard-breaks in -Thtml.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -2168,13 +2168,19 @@ mdoc_sp_pre(MDOC_ARGS) int len; struct htmlpair tag; - if (MDOC_sp == n->tok) + switch (n->tok) { + case (MDOC_sp): len = n->child ? atoi(n->child->string) : 1; - else + break; + case (MDOC_br): + len = 0; + break; + default: len = 1; + break; + } buffmt("height: %dem", len); - tag.key = ATTR_STYLE; tag.val = buf; print_otag(h, TAG_DIV, 1, &tag); |