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 | 2126fa8ef23591ab350a0c4e5e4102fc7aba7d4a (patch) | |
tree | 79e53317e35dfe4f9559b6bec9ee4a6ec512ba99 /html.c | |
parent | 224805b7570fc6d9b576be9a877bd86f4f20f66a (diff) | |
download | mandoc-2126fa8ef23591ab350a0c4e5e4102fc7aba7d4a.tar.gz mandoc-2126fa8ef23591ab350a0c4e5e4102fc7aba7d4a.tar.zst mandoc-2126fa8ef23591ab350a0c4e5e4102fc7aba7d4a.zip |
Fix height of hard-breaks in -Thtml.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.48 2009/09/21 14:07:07 kristaps Exp $ */ +/* $Id: html.c,v 1.49 2009/09/21 14:08:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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); |