version 1.368, 2018/12/31 07:46:07 |
version 1.369, 2018/12/31 08:38:21 |
Line 336 mdoc_validate(struct roff_man *mdoc) |
|
Line 336 mdoc_validate(struct roff_man *mdoc) |
|
if (n->sec != SEC_SYNOPSIS || |
if (n->sec != SEC_SYNOPSIS || |
(np->tok != MDOC_Cd && np->tok != MDOC_Fd)) |
(np->tok != MDOC_Cd && np->tok != MDOC_Fd)) |
check_text(mdoc, n->line, n->pos, n->string); |
check_text(mdoc, n->line, n->pos, n->string); |
if (np->tok != MDOC_Ql && np->tok != MDOC_Dl && |
if ((n->flags & NODE_NOFILL) == 0 && |
(np->tok != MDOC_Bd || |
|
(mdoc->flags & ROFF_NOFILL) == 0) && |
|
(np->tok != MDOC_It || np->type != ROFFT_HEAD || |
(np->tok != MDOC_It || np->type != ROFFT_HEAD || |
np->parent->parent->norm->Bl.type != LIST_diag)) |
np->parent->parent->norm->Bl.type != LIST_diag)) |
check_text_em(mdoc, n->line, n->pos, n->string); |
check_text_em(mdoc, n->line, n->pos, n->string); |
Line 411 check_text(struct roff_man *mdoc, int ln, int pos, cha |
|
Line 409 check_text(struct roff_man *mdoc, int ln, int pos, cha |
|
{ |
{ |
char *cp; |
char *cp; |
|
|
if (mdoc->flags & ROFF_NOFILL) |
if (mdoc->last->flags & NODE_NOFILL) |
return; |
return; |
|
|
for (cp = p; NULL != (p = strchr(p, '\t')); p++) |
for (cp = p; NULL != (p = strchr(p, '\t')); p++) |