version 1.111, 2010/08/20 01:02:07 |
version 1.113, 2010/10/01 21:51:13 |
Line 116 ml_alloc(char *outopts, enum htmltype type) |
|
Line 116 ml_alloc(char *outopts, enum htmltype type) |
|
h = calloc(1, sizeof(struct html)); |
h = calloc(1, sizeof(struct html)); |
if (NULL == h) { |
if (NULL == h) { |
perror(NULL); |
perror(NULL); |
exit(MANDOCLEVEL_SYSERR); |
exit((int)MANDOCLEVEL_SYSERR); |
} |
} |
|
|
h->type = type; |
h->type = type; |
Line 398 print_otag(struct html *h, enum htmltag tag, |
|
Line 398 print_otag(struct html *h, enum htmltag tag, |
|
t = malloc(sizeof(struct tag)); |
t = malloc(sizeof(struct tag)); |
if (NULL == t) { |
if (NULL == t) { |
perror(NULL); |
perror(NULL); |
exit(MANDOCLEVEL_SYSERR); |
exit((int)MANDOCLEVEL_SYSERR); |
} |
} |
t->tag = tag; |
t->tag = tag; |
t->next = h->tags.head; |
t->next = h->tags.head; |
Line 551 print_text(struct html *h, const char *word) |
|
Line 551 print_text(struct html *h, const char *word) |
|
if ( ! print_encode(h, word, 0)) |
if ( ! print_encode(h, word, 0)) |
if ( ! (h->flags & HTML_NONOSPACE)) |
if ( ! (h->flags & HTML_NONOSPACE)) |
h->flags &= ~HTML_NOSPACE; |
h->flags &= ~HTML_NOSPACE; |
|
|
|
h->flags &= ~HTML_IGNDELIM; |
|
|
/* |
/* |
* Note that we don't process the pipe: the parser sees it as |
* Note that we don't process the pipe: the parser sees it as |