=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.121 retrieving revision 1.122 diff -u -p -r1.121 -r1.122 --- mandoc/mdoc_html.c 2010/12/15 23:44:02 1.121 +++ mandoc/mdoc_html.c 2010/12/16 22:57:20 1.122 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.121 2010/12/15 23:44:02 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.122 2010/12/16 22:57:20 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -903,10 +903,6 @@ mdoc_it_pre(MDOC_ARGS) assert(lists[type]); PAIR_CLASS_INIT(&tag[0], lists[type]); - SCALE_VS_INIT(&su, ! bl->data.Bl->comp); - bufcat_su(h, "margin-top", &su); - PAIR_STYLE_INIT(&tag[1], h); - if (MDOC_HEAD == n->type) { switch (type) { case(LIST_bullet): @@ -928,6 +924,9 @@ mdoc_it_pre(MDOC_ARGS) case(LIST_ohang): /* FALLTHROUGH */ case(LIST_tag): + SCALE_VS_INIT(&su, ! bl->data.Bl->comp); + bufcat_su(h, "margin-top", &su); + PAIR_STYLE_INIT(&tag[1], h); print_otag(h, TAG_DT, 2, tag); break; case(LIST_column): @@ -946,7 +945,9 @@ mdoc_it_pre(MDOC_ARGS) case(LIST_enum): /* FALLTHROUGH */ case(LIST_item): - /* FALLTHROUGH */ + SCALE_VS_INIT(&su, ! bl->data.Bl->comp); + bufcat_su(h, "margin-top", &su); + PAIR_STYLE_INIT(&tag[1], h); print_otag(h, TAG_LI, 2, tag); break; case(LIST_diag): @@ -958,9 +959,19 @@ mdoc_it_pre(MDOC_ARGS) case(LIST_ohang): /* FALLTHROUGH */ case(LIST_tag): - print_otag(h, TAG_DD, 1, tag); + if (NULL == bl->data.Bl->width) { + print_otag(h, TAG_DD, 1, tag); + break; + } + a2width(bl->data.Bl->width, &su); + bufcat_su(h, "margin-left", &su); + PAIR_STYLE_INIT(&tag[1], h); + print_otag(h, TAG_DD, 2, tag); break; case(LIST_column): + SCALE_VS_INIT(&su, ! bl->data.Bl->comp); + bufcat_su(h, "margin-top", &su); + PAIR_STYLE_INIT(&tag[1], h); print_otag(h, TAG_TD, 2, tag); break; default: