[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.175 and 1.180

version 1.175, 2011/08/19 13:59:23 version 1.180, 2011/12/02 01:37:14
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, (int)(p - cp), MANDOCERR_BADTAB);                  mdoc_pmsg(m, ln, pos + (int)(p - cp), MANDOCERR_BADTAB);
         }  
 }  }
   
 static int  static int
Line 1695  post_rs(POST_ARGS)
Line 1694  post_rs(POST_ARGS)
         }          }
   
         /*          /*
            * Nothing to sort if only invalid nodes were found
            * inside the `Rs' body.
            */
   
           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
          * sub-elements according to `rsord'.  Pick through each element           * sub-elements according to `rsord'.  Pick through each element
          * and correctly order it.  This is a insertion sort.           * and correctly order it.  This is a insertion sort.
Line 2077  post_dt(POST_ARGS)
Line 2084  post_dt(POST_ARGS)
          *       arch = NULL           *       arch = NULL
          */           */
   
         cp = mdoc_a2msec(nn->string);          cp = mandoc_a2msec(nn->string);
         if (cp) {          if (cp) {
                 mdoc->meta.vol = mandoc_strdup(cp);                  mdoc->meta.vol = mandoc_strdup(cp);
                 mdoc->meta.msec = mandoc_strdup(nn->string);                  mdoc->meta.msec = mandoc_strdup(nn->string);

Legend:
Removed from v.1.175  
changed lines
  Added in v.1.180

CVSweb