[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.176 and 1.178

version 1.176, 2011/09/02 19:40:18 version 1.178, 2011/11/18 14:58:24
Line 545  check_text(struct mdoc *m, int ln, int pos, char *p)
Line 545  check_text(struct mdoc *m, int ln, int pos, char *p)
 {  {
         char            *cp;          char            *cp;
   
         cp = p;          if (MDOC_LITERAL & m->flags)
         for (cp = p; NULL != (p = strchr(p, '\t')); p++) {                  return;
                 if (MDOC_LITERAL & m->flags)  
                         continue;          for (cp = p; NULL != (p = strchr(p, '\t')); p++)
                 mdoc_pmsg(m, ln, pos + (int)(p - cp), MANDOCERR_BADTAB);                  mdoc_pmsg(m, ln, pos + (int)(p - cp), MANDOCERR_BADTAB);
         }  
 }  }
   
 static int  static int
Line 1693  post_rs(POST_ARGS)
Line 1692  post_rs(POST_ARGS)
                 mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD);                  mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD);
                 mdoc_node_delete(mdoc, nn);                  mdoc_node_delete(mdoc, nn);
         }          }
   
           /* Bail out early if a plain text node is found inside .Rs. */
           if (NULL == mdoc->last->child)
                   return(1);
   
         /*          /*
          * The full `Rs' block needs special handling to order the           * The full `Rs' block needs special handling to order the

Legend:
Removed from v.1.176  
changed lines
  Added in v.1.178

CVSweb