[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.384

version 1.383, 2020/04/06 10:16:17 version 1.384, 2020/04/08 11:56:03
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;
                         }                          }
         }          }

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

CVSweb