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

Diff for /mandoc/html.c between version 1.177 and 1.178

version 1.177, 2014/10/26 17:12:03 version 1.178, 2014/10/27 13:31:04
Line 457  print_encode(struct html *h, const char *p, int norecu
Line 457  print_encode(struct html *h, const char *p, int norecu
                         break;                          break;
                 case ESCAPE_SPECIAL:                  case ESCAPE_SPECIAL:
                         c = mchars_spec2cp(h->symtab, seq, len);                          c = mchars_spec2cp(h->symtab, seq, len);
                         if (c > 0)                          if (c <= 0)
                                   break;
                           if (c < 0x20 || c > 0x7e)
                                 printf("&#%d;", c);                                  printf("&#%d;", c);
                         else if (-1 == c && 1 == len &&                          else if ( ! print_escape(c))
                             !print_escape(*seq))                                  putchar(c);
                                 putchar((int)*seq);  
                         break;                          break;
                 case ESCAPE_NOSPACE:                  case ESCAPE_NOSPACE:
                         if ('\0' == *p)                          if ('\0' == *p)

Legend:
Removed from v.1.177  
changed lines
  Added in v.1.178

CVSweb