version 1.133, 2010/12/20 13:07:55 |
version 1.134, 2010/12/20 13:39:24 |
Line 857 mdoc_it_pre(MDOC_ARGS) |
|
Line 857 mdoc_it_pre(MDOC_ARGS) |
|
case(LIST_enum): |
case(LIST_enum): |
return(0); |
return(0); |
case(LIST_diag): |
case(LIST_diag): |
/* FIXME: STYLE for diag! */ |
|
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(LIST_hang): |
case(LIST_hang): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
Line 870 mdoc_it_pre(MDOC_ARGS) |
|
Line 869 mdoc_it_pre(MDOC_ARGS) |
|
bufcat_su(h, "margin-top", &su); |
bufcat_su(h, "margin-top", &su); |
PAIR_STYLE_INIT(&tag[1], h); |
PAIR_STYLE_INIT(&tag[1], h); |
print_otag(h, TAG_DT, 2, tag); |
print_otag(h, TAG_DT, 2, tag); |
|
if (LIST_diag != type) |
|
break; |
|
PAIR_CLASS_INIT(&tag[0], "diag"); |
|
print_otag(h, TAG_B, 1, tag); |
break; |
break; |
case(LIST_column): |
case(LIST_column): |
break; |
break; |
Line 939 mdoc_bl_pre(MDOC_ARGS) |
|
Line 942 mdoc_bl_pre(MDOC_ARGS) |
|
size_t i; |
size_t i; |
struct htmlpair tag[3]; |
struct htmlpair tag[3]; |
struct roffsu su; |
struct roffsu su; |
|
char buf[BUFSIZ]; |
|
|
if (MDOC_BODY == n->type) { |
if (MDOC_BODY == n->type) { |
if (LIST_column == n->data.Bl->type) |
if (LIST_column == n->data.Bl->type) |
Line 977 mdoc_bl_pre(MDOC_ARGS) |
|
Line 981 mdoc_bl_pre(MDOC_ARGS) |
|
PAIR_STYLE_INIT(&tag[0], h); |
PAIR_STYLE_INIT(&tag[0], h); |
|
|
assert(lists[n->data.Bl->type]); |
assert(lists[n->data.Bl->type]); |
bufinit(h); |
strlcpy(buf, "list ", BUFSIZ); |
bufcat(h, "list "); |
strlcat(buf, lists[n->data.Bl->type], BUFSIZ); |
bufcat(h, lists[n->data.Bl->type]); |
PAIR_INIT(&tag[1], ATTR_CLASS, buf); |
PAIR_INIT(&tag[1], ATTR_CLASS, h->buf); |
|
i = 2; |
|
|
|
/* Set the block's left-hand margin. */ |
/* Set the block's left-hand margin. */ |
|
|
if (n->data.Bl->offs) { |
if (n->data.Bl->offs) { |
a2offs(n->data.Bl->offs, &su); |
a2offs(n->data.Bl->offs, &su); |
bufcat_su(h, "margin-left", &su); |
bufcat_su(h, "margin-left", &su); |
PAIR_STYLE_INIT(&tag[2], h); |
|
i = 3; |
|
} |
} |
|
|
switch (n->data.Bl->type) { |
switch (n->data.Bl->type) { |
Line 1000 mdoc_bl_pre(MDOC_ARGS) |
|
Line 1000 mdoc_bl_pre(MDOC_ARGS) |
|
case(LIST_hyphen): |
case(LIST_hyphen): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(LIST_item): |
case(LIST_item): |
print_otag(h, TAG_UL, i, tag); |
print_otag(h, TAG_UL, 2, tag); |
break; |
break; |
case(LIST_enum): |
case(LIST_enum): |
print_otag(h, TAG_OL, i, tag); |
print_otag(h, TAG_OL, 2, tag); |
break; |
break; |
case(LIST_diag): |
case(LIST_diag): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
Line 1014 mdoc_bl_pre(MDOC_ARGS) |
|
Line 1014 mdoc_bl_pre(MDOC_ARGS) |
|
case(LIST_ohang): |
case(LIST_ohang): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(LIST_tag): |
case(LIST_tag): |
print_otag(h, TAG_DL, i, tag); |
print_otag(h, TAG_DL, 2, tag); |
break; |
break; |
case(LIST_column): |
case(LIST_column): |
print_otag(h, TAG_TABLE, i, tag); |
print_otag(h, TAG_TABLE, 2, tag); |
break; |
break; |
default: |
default: |
abort(); |
abort(); |
Line 1124 mdoc_sx_pre(MDOC_ARGS) |
|
Line 1124 mdoc_sx_pre(MDOC_ARGS) |
|
PAIR_CLASS_INIT(&tag[0], "link-sec"); |
PAIR_CLASS_INIT(&tag[0], "link-sec"); |
PAIR_HREF_INIT(&tag[1], buf); |
PAIR_HREF_INIT(&tag[1], buf); |
|
|
|
print_otag(h, TAG_I, 1, tag); |
print_otag(h, TAG_A, 2, tag); |
print_otag(h, TAG_A, 2, tag); |
return(1); |
return(1); |
} |
} |