version 1.147, 2011/05/24 21:40:14 |
version 1.150, 2011/10/05 21:35:17 |
|
|
ml_alloc(char *outopts, enum htmltype type) |
ml_alloc(char *outopts, enum htmltype type) |
{ |
{ |
struct html *h; |
struct html *h; |
const char *toks[4]; |
const char *toks[5]; |
char *v; |
char *v; |
|
|
toks[0] = "style"; |
toks[0] = "style"; |
toks[1] = "man"; |
toks[1] = "man"; |
toks[2] = "includes"; |
toks[2] = "includes"; |
toks[3] = NULL; |
toks[3] = "fragment"; |
|
toks[4] = NULL; |
|
|
h = mandoc_calloc(1, sizeof(struct html)); |
h = mandoc_calloc(1, sizeof(struct html)); |
|
|
Line 143 ml_alloc(char *outopts, enum htmltype type) |
|
Line 144 ml_alloc(char *outopts, enum htmltype type) |
|
case (2): |
case (2): |
h->base_includes = v; |
h->base_includes = v; |
break; |
break; |
|
case (3): |
|
h->oflags |= HTML_FRAGMENT; |
|
break; |
default: |
default: |
break; |
break; |
} |
} |
Line 513 print_text(struct html *h, const char *word) |
|
Line 517 print_text(struct html *h, const char *word) |
|
print_otag(h, TAG_I, 0, NULL); |
print_otag(h, TAG_I, 0, NULL); |
|
|
assert(word); |
assert(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; |
|
} else |
|
h->flags |= HTML_NOSPACE; |
|
|
if (h->metaf) { |
if (h->metaf) { |
print_tagq(h, h->metaf); |
print_tagq(h, h->metaf); |
Line 595 bufcat(struct html *h, const char *p) |
|
Line 601 bufcat(struct html *h, const char *p) |
|
|
|
h->buflen = strlcat(h->buf, p, BUFSIZ); |
h->buflen = strlcat(h->buf, p, BUFSIZ); |
assert(h->buflen < BUFSIZ); |
assert(h->buflen < BUFSIZ); |
h->buflen--; |
|
} |
} |
|
|
void |
void |