version 1.128, 2018/12/15 19:30:19 |
version 1.129, 2018/12/30 00:48:48 |
|
|
} |
} |
|
|
void |
void |
man_mdoc(void *arg, const struct roff_man *mdoc) |
man_mdoc(void *arg, const struct roff_meta *mdoc) |
{ |
{ |
struct roff_node *n; |
struct roff_node *n; |
|
|
|
|
} |
} |
|
|
printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", |
printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", |
mdoc->meta.title, |
mdoc->title, (mdoc->msec == NULL ? "" : mdoc->msec), |
(mdoc->meta.msec == NULL ? "" : mdoc->meta.msec), |
mdoc->date, mdoc->os, mdoc->vol); |
mdoc->meta.date, mdoc->meta.os, mdoc->meta.vol); |
|
|
|
/* Disable hyphenation and if nroff, disable justification. */ |
/* Disable hyphenation and if nroff, disable justification. */ |
printf(".nh\n.if n .ad l"); |
printf(".nh\n.if n .ad l"); |
|
|
*fontqueue.tail = 'R'; |
*fontqueue.tail = 'R'; |
} |
} |
for (; n != NULL; n = n->next) |
for (; n != NULL; n = n->next) |
print_node(&mdoc->meta, n); |
print_node(mdoc, n); |
putchar('\n'); |
putchar('\n'); |
} |
} |
|
|