[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.154 and 1.157

version 1.154, 2020/04/24 12:02:33 version 1.157, 2022/08/02 12:02:28
Line 239  check_tag(struct roff_node *n, struct roff_node *nt)
Line 239  check_tag(struct roff_node *n, struct roff_node *nt)
                         case ESCAPE_FONTITALIC:                          case ESCAPE_FONTITALIC:
                         case ESCAPE_FONTBI:                          case ESCAPE_FONTBI:
                         case ESCAPE_FONTROMAN:                          case ESCAPE_FONTROMAN:
                         case ESCAPE_FONTCW:                          case ESCAPE_FONTCR:
                           case ESCAPE_FONTCB:
                           case ESCAPE_FONTCI:
                         case ESCAPE_FONTPREV:                          case ESCAPE_FONTPREV:
                         case ESCAPE_IGNORE:                          case ESCAPE_IGNORE:
                                 break;                                  break;
Line 324  post_SH(CHKARGS)
Line 326  post_SH(CHKARGS)
                                         *cp = '_';                                          *cp = '_';
                         if (nc != NULL && nc->type == ROFFT_TEXT &&                          if (nc != NULL && nc->type == ROFFT_TEXT &&
                             strcmp(nc->string, tag) == 0)                              strcmp(nc->string, tag) == 0)
                                 tag_put(NULL, TAG_WEAK, n);                                  tag_put(NULL, TAG_STRONG, n);
                         else                          else
                                 tag_put(tag, TAG_FALLBACK, n);                                  tag_put(tag, TAG_FALLBACK, n);
                         free(tag);                          free(tag);
Line 371  post_UR(CHKARGS)
Line 373  post_UR(CHKARGS)
         if (n->type == ROFFT_HEAD && n->child == NULL)          if (n->type == ROFFT_HEAD && n->child == NULL)
                 mandoc_msg(MANDOCERR_UR_NOHEAD, n->line, n->pos,                  mandoc_msg(MANDOCERR_UR_NOHEAD, n->line, n->pos,
                     "%s", roff_name[n->tok]);                      "%s", roff_name[n->tok]);
         check_part(man, n);  
 }  }
   
 static void  static void
 check_part(CHKARGS)  check_part(CHKARGS)
 {  {
   
         if (n->type == ROFFT_BODY && n->child == NULL)          if (n->type == ROFFT_BODY && n->child == NULL)
                 mandoc_msg(MANDOCERR_BLK_EMPTY, n->line, n->pos,                  mandoc_msg(MANDOCERR_BLK_EMPTY, n->line, n->pos,
                     "%s", roff_name[n->tok]);                      "%s", roff_name[n->tok]);

Legend:
Removed from v.1.154  
changed lines
  Added in v.1.157

CVSweb