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 | 900b3f023f909b89d561c169c175f140bb304bdf (patch) | |
tree | 4a41a9ab6d1d810c85b91b57ebff6385009b51eb | |
parent | 9ccb94640e7d013c2433b151dd1bafdf57538ecb (diff) | |
download | mandoc-900b3f023f909b89d561c169c175f140bb304bdf.tar.gz mandoc-900b3f023f909b89d561c169c175f140bb304bdf.tar.zst mandoc-900b3f023f909b89d561c169c175f140bb304bdf.zip |
Fixed -Thtml -man PP left- and top-margin.
-rw-r--r-- | man_html.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.21 2009/11/15 06:45:31 kristaps Exp $ */ +/* $Id: man_html.c,v 1.22 2009/11/15 06:53:59 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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); } |