diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-15 06:53:59 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-15 06:53:59 +0000 |
commit | c993702f3a8c4d976aa9848cef460bb753bde12a (patch) | |
tree | e316f7fe316ffc8c6f507aee3943d3c4f6d938eb | |
parent | fa9a2e0d50be030033511e2b3b535729529d8696 (diff) | |
download | mandoc-c993702f3a8c4d976aa9848cef460bb753bde12a.tar.gz |
Fixed -Thtml -man PP left- and top-margin.
-rw-r--r-- | man_html.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -518,19 +518,19 @@ man_PP_pre(MAN_ARGS) i = 0; - if (MAN_ROOT == n->parent->tok) { + if (MAN_ROOT == n->parent->type) { SCALE_HS_INIT(&su, INDENT); bufcat_su(h, "margin-left", &su); - i++; + i = 1; } - if (n->next && n->next->child) { + if (n->prev) { SCALE_VS_INIT(&su, 1); - bufcat_su(h, "margin-bottom", &su); - i++; + bufcat_su(h, "margin-top", &su); + i = 1; } PAIR_STYLE_INIT(&tag, h); - print_otag(h, TAG_DIV, i ? 1 : 0, &tag); + print_otag(h, TAG_DIV, i, &tag); return(1); } |