[BACK]Return to html.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/html.c between version 1.149 and 1.150

version 1.149, 2022/07/06 14:27:55 version 1.150, 2022/08/09 11:21:50
Line 401 
Line 401 
          * In addition, reserve '~' for ordinal suffixes.           * In addition, reserve '~' for ordinal suffixes.
          */           */
   
         for (cp = buf; *cp != '\0'; cp++)          for (cp = buf; *cp != '\0'; cp++) {
                 if (isalnum((unsigned char)*cp) == 0 &&                  if (*cp == ASCII_HYPH)
                           *cp = '-';
                   else if (isalnum((unsigned char)*cp) == 0 &&
                     strchr("!$&'()*+,-./:;=?@_", *cp) == NULL)                      strchr("!$&'()*+,-./:;=?@_", *cp) == NULL)
                         *cp = '_';                          *cp = '_';
           }
   
         if (unique == 0)          if (unique == 0)
                 return buf;                  return buf;

Legend:
Removed from v.1.149  
changed lines
  Added in v.1.150