version 1.133, 2011/04/29 22:18:12 |
version 1.137, 2011/04/30 22:24:31 |
Line 122 ml_alloc(char *outopts, enum htmltype type) |
|
Line 122 ml_alloc(char *outopts, enum htmltype type) |
|
|
|
h->type = type; |
h->type = type; |
h->tags.head = NULL; |
h->tags.head = NULL; |
h->symtab = mchars_init(MCHARS_HTML); |
h->symtab = mchars_alloc(); |
|
|
while (outopts && *outopts) |
while (outopts && *outopts) |
switch (getsubopt(&outopts, UNCONST(toks), &v)) { |
switch (getsubopt(&outopts, UNCONST(toks), &v)) { |
Line 212 print_gen_head(struct html *h) |
|
Line 212 print_gen_head(struct html *h) |
|
static void |
static void |
print_num(struct html *h, const char *p, size_t len) |
print_num(struct html *h, const char *p, size_t len) |
{ |
{ |
const char *rhs; |
char c; |
|
|
rhs = mchars_num2char(p, len); |
if ('\0' != (c = mchars_num2char(p, len))) |
if (rhs) |
putchar((int)c); |
putchar((int)*rhs); |
|
} |
} |
|
|
static void |
static void |
Line 427 print_otag(struct html *h, enum htmltag tag, |
|
Line 426 print_otag(struct html *h, enum htmltag tag, |
|
print_attr(h, "lang", "en"); |
print_attr(h, "lang", "en"); |
} |
} |
|
|
/* Accomodate for XML "well-formed" singleton escaping. */ |
/* Accommodate for XML "well-formed" singleton escaping. */ |
|
|
if (HTML_AUTOCLOSE & htmltags[tag].flags) |
if (HTML_AUTOCLOSE & htmltags[tag].flags) |
switch (h->type) { |
switch (h->type) { |