[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_validate.c between version 1.12 and 1.13

version 1.12, 2009/06/17 10:53:32 version 1.13, 2009/06/17 11:02:06
Line 1072  post_bf(POST_ARGS)
Line 1072  post_bf(POST_ARGS)
         if (MDOC_BLOCK != mdoc->last->type)          if (MDOC_BLOCK != mdoc->last->type)
                 return(1);                  return(1);
   
         /* FIXME: clean-up .*/  
   
         head = mdoc->last->head;          head = mdoc->last->head;
   
         if (mdoc->last->args && head->child)          if (mdoc->last->args && head->child)
                   return(mdoc_err(mdoc, "one argument expected"));
           else if (mdoc->last->args)
                   return(1);
   
         if (NULL == mdoc->last->args) {          if (NULL == head->child || MDOC_TEXT != head->child->type)
                 if (NULL == head->child ||                  return(mdoc_err(mdoc, "text argument expected"));
                                 MDOC_TEXT != head->child->type)  
                         return(mdoc_err(mdoc, "text argument expected"));  
   
                 p = head->child->string;          p = head->child->string;
                 if (0 == strcmp(p, "Em"))  
                         return(1);  
                 else if (0 == strcmp(p, "Li"))  
                         return(1);  
                 else if (0 == strcmp(p, "Sm"))  
                         return(1);  
                 return(mdoc_nerr(mdoc, head->child, "invalid font"));  
         }  
   
         if (head->child)          if (0 == strcmp(p, "Em"))
                 return(mdoc_err(mdoc, "one argument expected"));                  return(1);
           else if (0 == strcmp(p, "Li"))
                   return(1);
           else if (0 == strcmp(p, "Sm"))
                   return(1);
   
         return(1);          return(mdoc_nerr(mdoc, head->child, "invalid font mode"));
 }  }
   
   

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

CVSweb