version 1.142, 2011/05/17 11:34:31 |
version 1.143, 2011/05/17 11:38:18 |
Line 656 buffmt_includes(struct html *h, const char *name) |
|
Line 656 buffmt_includes(struct html *h, const char *name) |
|
|
|
pp = h->base_includes; |
pp = h->base_includes; |
|
|
|
bufinit(h); |
while (NULL != (p = strchr(pp, '%'))) { |
while (NULL != (p = strchr(pp, '%'))) { |
bufncat(h, pp, (size_t)(p - pp)); |
bufncat(h, pp, (size_t)(p - pp)); |
switch (*(p + 1)) { |
switch (*(p + 1)) { |
Line 680 buffmt_man(struct html *h, |
|
Line 681 buffmt_man(struct html *h, |
|
|
|
pp = h->base_man; |
pp = h->base_man; |
|
|
/* LINTED */ |
bufinit(h); |
while (NULL != (p = strchr(pp, '%'))) { |
while (NULL != (p = strchr(pp, '%'))) { |
bufncat(h, pp, (size_t)(p - pp)); |
bufncat(h, pp, (size_t)(p - pp)); |
switch (*(p + 1)) { |
switch (*(p + 1)) { |
Line 718 bufcat_id(struct html *h, const char *src) |
|
Line 719 bufcat_id(struct html *h, const char *src) |
|
|
|
/* Cf. <http://www.w3.org/TR/html4/types.html#h-6.2>. */ |
/* Cf. <http://www.w3.org/TR/html4/types.html#h-6.2>. */ |
|
|
if (0 == h->buflen) |
|
bufcat(h, "#x"); |
|
while ('\0' != *src) |
while ('\0' != *src) |
bufcat_fmt(h, "%.2x", *src++); |
bufcat_fmt(h, "%.2x", *src++); |
} |
} |