version 1.34, 2012/07/11 23:46:37 |
version 1.35, 2012/07/12 08:55:48 |
Line 103 static int pre_ux(DECL_ARGS); |
|
Line 103 static int pre_ux(DECL_ARGS); |
|
static int pre_xr(DECL_ARGS); |
static int pre_xr(DECL_ARGS); |
static void print_word(const char *); |
static void print_word(const char *); |
static void print_offs(const char *); |
static void print_offs(const char *); |
static void print_width(const char *, const struct mdoc_node *); |
static void print_width(const char *, |
|
const struct mdoc_node *, size_t); |
static void print_count(int *); |
static void print_count(int *); |
static void print_node(DECL_ARGS); |
static void print_node(DECL_ARGS); |
|
|
Line 363 print_offs(const char *v) |
|
Line 364 print_offs(const char *v) |
|
} |
} |
|
|
void |
void |
print_width(const char *v, const struct mdoc_node *child) |
print_width(const char *v, const struct mdoc_node *child, size_t defsz) |
{ |
{ |
char buf[24]; |
char buf[24]; |
struct roffsu su; |
struct roffsu su; |
Line 373 print_width(const char *v, const struct mdoc_node *chi |
|
Line 374 print_width(const char *v, const struct mdoc_node *chi |
|
chsz = (NULL != child && MDOC_TEXT == child->type) ? |
chsz = (NULL != child && MDOC_TEXT == child->type) ? |
strlen(child->string) : 0; |
strlen(child->string) : 0; |
|
|
if (a2roffsu(v, &su, SCALE_MAX)) { |
if (NULL == v) |
|
sz = defsz; |
|
else if (a2roffsu(v, &su, SCALE_MAX)) { |
if (SCALE_EN == su.unit) |
if (SCALE_EN == su.unit) |
sz = su.scale; |
sz = su.scale; |
else { |
else { |
Line 962 pre_fn(DECL_ARGS) |
|
Line 965 pre_fn(DECL_ARGS) |
|
outflags &= ~MMAN_spc; |
outflags &= ~MMAN_spc; |
print_word("("); |
print_word("("); |
outflags &= ~MMAN_spc; |
outflags &= ~MMAN_spc; |
return(pre_fa(m, n->next)); |
|
|
n = n->next; |
|
if (NULL != n) |
|
pre_fa(m, n); |
|
return(0); |
} |
} |
|
|
static void |
static void |
Line 1092 pre_it(DECL_ARGS) |
|
Line 1099 pre_it(DECL_ARGS) |
|
case (LIST_dash): |
case (LIST_dash): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (LIST_hyphen): |
case (LIST_hyphen): |
print_width(bln->norm->Bl.width, NULL); |
print_width(bln->norm->Bl.width, NULL, 0); |
outflags |= MMAN_nl; |
outflags |= MMAN_nl; |
font_push('B'); |
font_push('B'); |
if (LIST_bullet == bln->norm->Bl.type) |
if (LIST_bullet == bln->norm->Bl.type) |
Line 1102 pre_it(DECL_ARGS) |
|
Line 1109 pre_it(DECL_ARGS) |
|
font_pop(); |
font_pop(); |
break; |
break; |
case (LIST_enum): |
case (LIST_enum): |
print_width(bln->norm->Bl.width, NULL); |
print_width(bln->norm->Bl.width, NULL, 0); |
outflags |= MMAN_nl; |
outflags |= MMAN_nl; |
print_count(&bln->norm->Bl.count); |
print_count(&bln->norm->Bl.count); |
break; |
break; |
case (LIST_hang): |
case (LIST_hang): |
print_width(bln->norm->Bl.width, n->child); |
print_width(bln->norm->Bl.width, n->child, 6); |
break; |
break; |
case (LIST_tag): |
case (LIST_tag): |
print_width(bln->norm->Bl.width, NULL); |
print_width(bln->norm->Bl.width, NULL, 8); |
break; |
break; |
default: |
default: |
return(1); |
return(1); |