version 1.269, 2018/12/13 11:55:14 |
version 1.270, 2018/12/30 00:48:48 |
|
|
|
|
|
|
void |
void |
terminal_mdoc(void *arg, const struct roff_man *mdoc) |
terminal_mdoc(void *arg, const struct roff_meta *mdoc) |
{ |
{ |
struct roff_node *n; |
struct roff_node *n; |
struct termp *p; |
struct termp *p; |
|
|
if (n->tok == MDOC_Sh && n->sec == SEC_SYNOPSIS) { |
if (n->tok == MDOC_Sh && n->sec == SEC_SYNOPSIS) { |
if (n->child->next->child != NULL) |
if (n->child->next->child != NULL) |
print_mdoc_nodelist(p, NULL, |
print_mdoc_nodelist(p, NULL, |
&mdoc->meta, |
mdoc, n->child->next->child); |
n->child->next->child); |
|
term_newln(p); |
term_newln(p); |
break; |
break; |
} |
} |
|
|
save_defindent = p->defindent; |
save_defindent = p->defindent; |
if (p->defindent == 0) |
if (p->defindent == 0) |
p->defindent = 5; |
p->defindent = 5; |
term_begin(p, print_mdoc_head, print_mdoc_foot, |
term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc); |
&mdoc->meta); |
|
while (n != NULL && |
while (n != NULL && |
(n->type == ROFFT_COMMENT || |
(n->type == ROFFT_COMMENT || |
n->flags & NODE_NOPRT)) |
n->flags & NODE_NOPRT)) |
|
|
if (n != NULL) { |
if (n != NULL) { |
if (n->tok != MDOC_Sh) |
if (n->tok != MDOC_Sh) |
term_vspace(p); |
term_vspace(p); |
print_mdoc_nodelist(p, NULL, &mdoc->meta, n); |
print_mdoc_nodelist(p, NULL, mdoc, n); |
} |
} |
term_end(p); |
term_end(p); |
p->defindent = save_defindent; |
p->defindent = save_defindent; |