version 1.32, 2009/10/03 19:57:53 |
version 1.34, 2009/10/07 12:19:39 |
Line 160 man_run(struct termp *p, const struct man *m) |
|
Line 160 man_run(struct termp *p, const struct man *m) |
|
|
|
|
|
static void |
static void |
|
|
fmt_block_vspace(struct termp *p, const struct man_node *n) |
fmt_block_vspace(struct termp *p, const struct man_node *n) |
{ |
{ |
term_newln(p); |
term_newln(p); |
|
|
print_foot(struct termp *p, const struct man_meta *meta) |
print_foot(struct termp *p, const struct man_meta *meta) |
{ |
{ |
struct tm *tm; |
struct tm *tm; |
char *buf; |
char buf[BUFSIZ]; |
|
|
if (NULL == (buf = malloc(p->rmargin))) |
|
err(EXIT_FAILURE, "malloc"); |
|
|
|
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 %d, %Y", tm)) |
err(EXIT_FAILURE, "strftime"); |
(void)strlcpy(buf, "(invalid date)", BUFSIZ); |
|
|
term_vspace(p); |
term_vspace(p); |
|
|
Line 949 print_foot(struct termp *p, const struct man_meta *met |
|
Line 945 print_foot(struct termp *p, const struct man_meta *met |
|
|
|
term_word(p, buf); |
term_word(p, buf); |
term_flushln(p); |
term_flushln(p); |
|
|
free(buf); |
|
} |
} |
|
|
|
|