version 1.73, 2010/10/23 17:04:51 |
version 1.74, 2010/10/24 18:15:43 |
|
|
{ |
{ |
struct mdoc_node *node; |
struct mdoc_node *node; |
|
|
/* Display elements (`Bd', `D1'...) cannot be nested. */ |
|
|
|
if (MDOC_BLOCK != n->type) |
if (MDOC_BLOCK != n->type) |
return(1); |
return(1); |
|
|
/* LINTED */ |
|
for (node = mdoc->last->parent; node; node = node->parent) |
for (node = mdoc->last->parent; node; node = node->parent) |
if (MDOC_BLOCK == node->type) |
if (MDOC_BLOCK == node->type) |
if (MDOC_Bd == node->tok) |
if (MDOC_Bd == node->tok) |
break; |
break; |
if (NULL == node) |
if (node) |
return(1); |
mdoc_nmsg(mdoc, n, MANDOCERR_NESTEDDISP); |
|
|
mdoc_nmsg(mdoc, n, MANDOCERR_NESTEDDISP); |
return(1); |
return(0); |
|
} |
} |
|
|
|
|