[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.383 and 1.386

version 1.383, 2020/04/06 10:16:17 version 1.386, 2020/04/24 12:02:33
Line 37 
Line 37 
 #include "mandoc.h"  #include "mandoc.h"
 #include "mandoc_xr.h"  #include "mandoc_xr.h"
 #include "roff.h"  #include "roff.h"
 #include "tag.h"  
 #include "mdoc.h"  #include "mdoc.h"
 #include "libmandoc.h"  #include "libmandoc.h"
 #include "roff_int.h"  #include "roff_int.h"
 #include "libmdoc.h"  #include "libmdoc.h"
   #include "tag.h"
   
 /* FIXME: .Bl -diag can't have non-text children in HEAD. */  /* FIXME: .Bl -diag can't have non-text children in HEAD. */
   
Line 2212  post_hyph(POST_ARGS)
Line 2212  post_hyph(POST_ARGS)
                         if (*cp == '-' &&                          if (*cp == '-' &&
                             isalpha((unsigned char)cp[-1]) &&                              isalpha((unsigned char)cp[-1]) &&
                             isalpha((unsigned char)cp[1])) {                              isalpha((unsigned char)cp[1])) {
                                 if (n->string == NULL && n->flags & NODE_ID)                                  if (n->tag == NULL && n->flags & NODE_ID)
                                         n->string = mandoc_strdup(nch->string);                                          n->tag = mandoc_strdup(nch->string);
                                 *cp = ASCII_HYPH;                                  *cp = ASCII_HYPH;
                         }                          }
         }          }
Line 2765  post_dt(POST_ARGS)
Line 2765  post_dt(POST_ARGS)
                 mandoc_msg(MANDOCERR_MSEC_BAD,                  mandoc_msg(MANDOCERR_MSEC_BAD,
                     nn->line, nn->pos, "Dt ... %s", nn->string);                      nn->line, nn->pos, "Dt ... %s", nn->string);
                 mdoc->meta.vol = mandoc_strdup(nn->string);                  mdoc->meta.vol = mandoc_strdup(nn->string);
         } else          } else {
                 mdoc->meta.vol = mandoc_strdup(cp);                  mdoc->meta.vol = mandoc_strdup(cp);
                   if (mdoc->filesec != '\0' &&
                       mdoc->filesec != *nn->string &&
                       *nn->string >= '1' && *nn->string <= '9')
                           mandoc_msg(MANDOCERR_MSEC_FILE, nn->line, nn->pos,
                               "*.%c vs Dt ... %c", mdoc->filesec, *nn->string);
           }
   
         /* Optional third argument: architecture. */          /* Optional third argument: architecture. */
   

Legend:
Removed from v.1.383  
changed lines
  Added in v.1.386

CVSweb