version 1.114, 2010/12/15 14:52:16 |
version 1.117, 2010/12/17 08:17:40 |
Line 67 static const struct htmldata htmltags[TAG_MAX] = { |
|
Line 67 static const struct htmldata htmltags[TAG_MAX] = { |
|
{"dl", HTML_CLRLINE}, /* TAG_DL */ |
{"dl", HTML_CLRLINE}, /* TAG_DL */ |
{"dt", HTML_CLRLINE}, /* TAG_DT */ |
{"dt", HTML_CLRLINE}, /* TAG_DT */ |
{"dd", HTML_CLRLINE}, /* TAG_DD */ |
{"dd", HTML_CLRLINE}, /* TAG_DD */ |
|
{"blockquote", HTML_CLRLINE}, /* TAG_BLOCKQUOTE */ |
|
{"p", HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_P */ |
}; |
}; |
|
|
static const char *const htmlfonts[HTMLFONT_MAX] = { |
static const char *const htmlfonts[HTMLFONT_MAX] = { |
Line 447 print_otag(struct html *h, enum htmltag tag, |
|
Line 449 print_otag(struct html *h, enum htmltag tag, |
|
putchar('>'); |
putchar('>'); |
|
|
h->flags |= HTML_NOSPACE; |
h->flags |= HTML_NOSPACE; |
|
|
|
if ((HTML_AUTOCLOSE | HTML_CLRLINE) & htmltags[tag].flags) |
|
putchar('\n'); |
|
|
return(t); |
return(t); |
} |
} |
|
|