version 1.120, 2010/12/15 17:19:41 |
version 1.122, 2010/12/16 22:57:20 |
Line 903 mdoc_it_pre(MDOC_ARGS) |
|
Line 903 mdoc_it_pre(MDOC_ARGS) |
|
assert(lists[type]); |
assert(lists[type]); |
PAIR_CLASS_INIT(&tag[0], 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) { |
if (MDOC_HEAD == n->type) { |
switch (type) { |
switch (type) { |
case(LIST_bullet): |
case(LIST_bullet): |
Line 928 mdoc_it_pre(MDOC_ARGS) |
|
Line 924 mdoc_it_pre(MDOC_ARGS) |
|
case(LIST_ohang): |
case(LIST_ohang): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(LIST_tag): |
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); |
print_otag(h, TAG_DT, 2, tag); |
break; |
break; |
case(LIST_column): |
case(LIST_column): |
Line 946 mdoc_it_pre(MDOC_ARGS) |
|
Line 945 mdoc_it_pre(MDOC_ARGS) |
|
case(LIST_enum): |
case(LIST_enum): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(LIST_item): |
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); |
print_otag(h, TAG_LI, 2, tag); |
break; |
break; |
case(LIST_diag): |
case(LIST_diag): |
Line 958 mdoc_it_pre(MDOC_ARGS) |
|
Line 959 mdoc_it_pre(MDOC_ARGS) |
|
case(LIST_ohang): |
case(LIST_ohang): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(LIST_tag): |
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; |
break; |
case(LIST_column): |
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); |
print_otag(h, TAG_TD, 2, tag); |
break; |
break; |
default: |
default: |
Line 1541 mdoc_sm_pre(MDOC_ARGS) |
|
Line 1552 mdoc_sm_pre(MDOC_ARGS) |
|
static int |
static int |
mdoc_pp_pre(MDOC_ARGS) |
mdoc_pp_pre(MDOC_ARGS) |
{ |
{ |
|
|
if ((NULL == n->next || NULL == n->prev) && |
|
(MDOC_Ss == n->parent->tok || |
|
MDOC_Sh == n->parent->tok)) |
|
return(0); |
|
|
|
print_otag(h, TAG_P, 0, NULL); |
print_otag(h, TAG_P, 0, NULL); |
return(0); |
return(0); |