version 1.45, 2010/07/23 12:27:28 |
version 1.48, 2010/12/06 14:07:01 |
Line 112 static const struct htmlman mans[MAN_MAX] = { |
|
Line 112 static const struct htmlman mans[MAN_MAX] = { |
|
{ man_ign_pre, NULL }, /* DT */ |
{ man_ign_pre, NULL }, /* DT */ |
{ man_ign_pre, NULL }, /* UC */ |
{ man_ign_pre, NULL }, /* UC */ |
{ man_ign_pre, NULL }, /* PD */ |
{ man_ign_pre, NULL }, /* PD */ |
{ man_br_pre, NULL }, /* Sp */ |
|
{ man_literal_pre, NULL }, /* Vb */ |
|
{ man_literal_pre, NULL }, /* Ve */ |
|
{ man_ign_pre, NULL }, /* AT */ |
{ man_ign_pre, NULL }, /* AT */ |
{ man_in_pre, NULL }, /* in */ |
{ man_in_pre, NULL }, /* in */ |
}; |
}; |
Line 366 man_br_pre(MAN_ARGS) |
|
Line 363 man_br_pre(MAN_ARGS) |
|
SCALE_VS_INIT(&su, 1); |
SCALE_VS_INIT(&su, 1); |
|
|
switch (n->tok) { |
switch (n->tok) { |
case (MAN_Sp): |
|
SCALE_VS_INIT(&su, 0.5); |
|
break; |
|
case (MAN_sp): |
case (MAN_sp): |
if (n->child) |
if (n->child) |
a2roffsu(n->child->string, &su, SCALE_VS); |
a2roffsu(n->child->string, &su, SCALE_VS); |
Line 553 man_PP_pre(MAN_ARGS) |
|
Line 547 man_PP_pre(MAN_ARGS) |
|
struct roffsu su; |
struct roffsu su; |
int i; |
int i; |
|
|
if (MAN_BLOCK != n->type) |
if (MAN_BODY == n->type) |
return(1); |
return(1); |
|
if (MAN_HEAD == n->type) |
|
return(0); |
|
|
i = 0; |
i = 0; |
|
|
Line 571 man_PP_pre(MAN_ARGS) |
|
Line 567 man_PP_pre(MAN_ARGS) |
|
|
|
PAIR_STYLE_INIT(&tag, h); |
PAIR_STYLE_INIT(&tag, h); |
print_otag(h, TAG_DIV, i, &tag); |
print_otag(h, TAG_DIV, i, &tag); |
|
|
return(1); |
return(1); |
} |
} |
|
|
|
|
man_literal_pre(MAN_ARGS) |
man_literal_pre(MAN_ARGS) |
{ |
{ |
|
|
switch (n->tok) { |
if (MAN_nf == n->tok) { |
case (MAN_nf): |
|
/* FALLTHROUGH */ |
|
case (MAN_Vb): |
|
print_otag(h, TAG_BR, 0, NULL); |
print_otag(h, TAG_BR, 0, NULL); |
mh->fl |= MANH_LITERAL; |
mh->fl |= MANH_LITERAL; |
return(MAN_Vb != n->tok); |
} else |
default: |
|
mh->fl &= ~MANH_LITERAL; |
mh->fl &= ~MANH_LITERAL; |
break; |
|
} |
|
|
|
return(1); |
return(1); |
} |
} |