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("&"); |
printf("&"); |
|
continue; |
|
case '"': |
|
printf("""); |
continue; |
continue; |
case ASCII_NBRSP: |
case ASCII_NBRSP: |
putchar('-'); |
putchar('-'); |