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

Diff for /mandoc/man_validate.c between version 1.17 and 1.21

version 1.17, 2009/08/13 11:45:29 version 1.21, 2009/08/20 11:51:07
Line 83  static const struct man_valid man_valids[MAN_MAX] = {
Line 83  static const struct man_valid man_valids[MAN_MAX] = {
         { pres_bline, posts_eq0 }, /* nf */          { pres_bline, posts_eq0 }, /* nf */
         { pres_bline, posts_eq0 }, /* fi */          { pres_bline, posts_eq0 }, /* fi */
         { NULL, NULL }, /* r */          { NULL, NULL }, /* r */
           { NULL, NULL }, /* RE */
           { NULL, NULL }, /* RS */ /* FIXME: warn if empty body. */
           { NULL, NULL }, /* DT */
 };  };
   
   
Line 289  static int
Line 292  static int
 check_eline(CHKARGS)  check_eline(CHKARGS)
 {  {
   
         if ( ! (MAN_ELINE & m->flags))          if (MAN_ELINE & m->flags)
                 return(1);                  return(man_nerr(m, n, WLNSCOPE));
         return(man_nerr(m, n, WLNSCOPE));          return(1);
 }  }
   
   
Line 299  static int
Line 302  static int
 check_bline(CHKARGS)  check_bline(CHKARGS)
 {  {
   
         if ( ! (MAN_BLINE & m->flags))          if (MAN_BLINE & m->flags)
                 return(1);                  return(man_nerr(m, n, WLNSCOPE));
         return(man_nerr(m, n, WLNSCOPE));          if (MAN_ELINE & m->flags)
                   return(man_nerr(m, n, WLNSCOPE));
           return(1);
 }  }
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.21

CVSweb