version 1.125, 2018/04/05 22:05:08 |
version 1.126, 2018/04/11 17:11:13 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011-2018 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 610 man_mdoc(void *arg, const struct roff_man *mdoc) |
|
Line 610 man_mdoc(void *arg, const struct roff_man *mdoc) |
|
{ |
{ |
struct roff_node *n; |
struct roff_node *n; |
|
|
|
printf(".\\\" Automatically generated from an mdoc input file." |
|
" Do not edit.\n"); |
|
for (n = mdoc->first->child; n != NULL; n = n->next) { |
|
if (n->type != ROFFT_COMMENT) |
|
break; |
|
printf(".\\\"%s\n", n->string); |
|
} |
|
|
printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", |
printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", |
mdoc->meta.title, |
mdoc->meta.title, |
(mdoc->meta.msec == NULL ? "" : mdoc->meta.msec), |
(mdoc->meta.msec == NULL ? "" : mdoc->meta.msec), |
Line 624 man_mdoc(void *arg, const struct roff_man *mdoc) |
|
Line 632 man_mdoc(void *arg, const struct roff_man *mdoc) |
|
fontqueue.head = fontqueue.tail = mandoc_malloc(8); |
fontqueue.head = fontqueue.tail = mandoc_malloc(8); |
*fontqueue.tail = 'R'; |
*fontqueue.tail = 'R'; |
} |
} |
for (n = mdoc->first->child; n != NULL; n = n->next) |
for (; n != NULL; n = n->next) |
print_node(&mdoc->meta, n); |
print_node(&mdoc->meta, n); |
putchar('\n'); |
putchar('\n'); |
} |
} |