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

Diff for /mandoc/html.c between version 1.157 and 1.158

version 1.157, 2014/04/23 16:08:33 version 1.158, 2014/07/22 22:41:35
Line 330  print_encode(struct html *h, const char *p, int norecu
Line 330  print_encode(struct html *h, const char *p, int norecu
         int              c, len, nospace;          int              c, len, nospace;
         const char      *seq;          const char      *seq;
         enum mandoc_esc  esc;          enum mandoc_esc  esc;
         static const char rejs[8] = { '\\', '<', '>', '&',          static const char rejs[9] = { '\\', '<', '>', '&', '"',
                 ASCII_NBRSP, ASCII_HYPH, ASCII_BREAK, '\0' };                  ASCII_NBRSP, ASCII_HYPH, ASCII_BREAK, '\0' };
   
         nospace = 0;          nospace = 0;
Line 359  print_encode(struct html *h, const char *p, int norecu
Line 359  print_encode(struct html *h, const char *p, int norecu
                         continue;                          continue;
                 case '&':                  case '&':
                         printf("&amp;");                          printf("&amp;");
                           continue;
                   case '"':
                           printf("&quot;");
                         continue;                          continue;
                 case ASCII_NBRSP:                  case ASCII_NBRSP:
                         putchar('-');                          putchar('-');

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

CVSweb