version 1.40, 2009/10/18 19:03:37 |
version 1.42, 2009/10/21 03:31:49 |
Line 191 arg2height(const struct man_node *n) |
|
Line 191 arg2height(const struct man_node *n) |
|
if ( ! a2roffsu(n->string, &su, SCALE_VS)) |
if ( ! a2roffsu(n->string, &su, SCALE_VS)) |
SCALE_VS_INIT(&su, strlen(n->string)); |
SCALE_VS_INIT(&su, strlen(n->string)); |
|
|
return(term_vspan(&su)); |
return((int)term_vspan(&su)); |
} |
} |
|
|
|
|
Line 203 arg2width(const struct man_node *n) |
|
Line 203 arg2width(const struct man_node *n) |
|
assert(MAN_TEXT == n->type); |
assert(MAN_TEXT == n->type); |
assert(n->string); |
assert(n->string); |
if ( ! a2roffsu(n->string, &su, SCALE_BU)) |
if ( ! a2roffsu(n->string, &su, SCALE_BU)) |
SCALE_HS_INIT(&su, strlen(n->string) + 2); |
return(-1); |
|
|
return(term_hspan(&su)); |
return((int)term_hspan(&su)); |
} |
} |
|
|
|
|
Line 914 print_foot(struct termp *p, const struct man_meta *met |
|
Line 914 print_foot(struct termp *p, const struct man_meta *met |
|
|
|
tm = localtime(&meta->date); |
tm = localtime(&meta->date); |
|
|
if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm)) |
if (0 == strftime(buf, p->rmargin, "%B %e, %Y", tm)) |
(void)strlcpy(buf, "(invalid date)", BUFSIZ); |
(void)strlcpy(buf, "(invalid date)", BUFSIZ); |
|
|
term_vspace(p); |
term_vspace(p); |