[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_validate.c between version 1.73 and 1.74

version 1.73, 2010/10/23 17:04:51 version 1.74, 2010/10/24 18:15:43
Line 549 
Line 549 
 {  {
         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);  
 }  }
   
   

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74