[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.301 and 1.302

version 1.301, 2016/01/08 17:48:09 version 1.302, 2016/08/09 15:09:27
Line 1773  post_sh_head(POST_ARGS)
Line 1773  post_sh_head(POST_ARGS)
   
         /* The NAME should be first. */          /* The NAME should be first. */
   
         if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed)          if (sec != SEC_NAME && mdoc->lastnamed == SEC_NONE)
                 mandoc_vmsg(MANDOCERR_NAMESEC_FIRST, mdoc->parse,                  mandoc_vmsg(MANDOCERR_NAMESEC_FIRST, mdoc->parse,
                     mdoc->last->line, mdoc->last->pos,                      mdoc->last->line, mdoc->last->pos, "Sh %s",
                     "Sh %s", secnames[sec]);                      sec == SEC_CUSTOM ? mdoc->last->child->string :
                       secnames[sec]);
   
         /* The SYNOPSIS gets special attention in other areas. */          /* The SYNOPSIS gets special attention in other areas. */
   

Legend:
Removed from v.1.301  
changed lines
  Added in v.1.302

CVSweb