summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 14:52:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 14:52:16 +0000
commitfb2492a98c627cb31a5ce400bab597e1ff751da4 (patch)
tree22b69a7d17cf6d996059bd6a2ea9e0343e28495e /html.c
parent5e2df6c48c6edf1da80c40d4f2b353e8447cf0db (diff)
downloadmandoc-fb2492a98c627cb31a5ce400bab597e1ff751da4.tar.gz
In-progress move from -T[x]html using DIVs for its lists to using DL,
OL, and UL. Issue raised by Will Backman, solution proposed by schwarze@.
Diffstat (limited to 'html.c')
-rw-r--r--html.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/html.c b/html.c
index 722d5e19..2f496565 100644
--- a/html.c
+++ b/html.c
@@ -57,12 +57,16 @@ static const struct htmldata htmltags[TAG_MAX] = {
{"br", HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_BR */
{"a", 0}, /* TAG_A */
{"table", HTML_CLRLINE}, /* TAG_TABLE */
+ {"tbody", HTML_CLRLINE}, /* TAG_TBODY */
{"col", HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_COL */
{"tr", HTML_CLRLINE}, /* TAG_TR */
{"td", HTML_CLRLINE}, /* TAG_TD */
{"li", HTML_CLRLINE}, /* TAG_LI */
{"ul", HTML_CLRLINE}, /* TAG_UL */
{"ol", HTML_CLRLINE}, /* TAG_OL */
+ {"dl", HTML_CLRLINE}, /* TAG_DL */
+ {"dt", HTML_CLRLINE}, /* TAG_DT */
+ {"dd", HTML_CLRLINE}, /* TAG_DD */
};
static const char *const htmlfonts[HTMLFONT_MAX] = {
@@ -121,7 +125,6 @@ ml_alloc(char *outopts, enum htmltype type)
h->type = type;
h->tags.head = NULL;
- h->ords.head = NULL;
h->symtab = chars_init(CHARS_HTML);
while (outopts && *outopts)
@@ -162,16 +165,10 @@ void
html_free(void *p)
{
struct tag *tag;
- struct ord *ord;
struct html *h;
h = (struct html *)p;
- while ((ord = h->ords.head) != NULL) {
- h->ords.head = ord->next;
- free(ord);
- }
-
while ((tag = h->tags.head) != NULL) {
h->tags.head = tag->next;
free(tag);