From f42a91b55dfcddcdd77e9ff190a164c0bd531eb5 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 20 Dec 2010 10:40:11 +0000 Subject: Give header and footer table cells default widths (using WIDTH and ALIGN atttributes) if no style is specified. Give the default-bold elements a B tag instead of a SPAN tag, as this can be overriden in the stylesheet. Prune some unused attributes from html.h. --- html.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index b6a310c0..99a5344e 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.118 2010/12/17 10:37:26 kristaps Exp $ */ +/* $Id: html.c,v 1.119 2010/12/20 10:40:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -70,6 +70,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"blockquote", HTML_CLRLINE}, /* TAG_BLOCKQUOTE */ {"p", HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_P */ {"pre", HTML_CLRLINE }, /* TAG_PRE */ + {"b", 0 }, /* TAG_B */ }; static const char *const htmlfonts[HTMLFONT_MAX] = { @@ -79,20 +80,19 @@ static const char *const htmlfonts[HTMLFONT_MAX] = { }; static const char *const htmlattrs[ATTR_MAX] = { - "http-equiv", - "content", - "name", - "rel", - "href", - "type", - "media", - "class", - "style", - "width", - "valign", - "target", - "id", - "summary", + "http-equiv", /* ATTR_HTTPEQUIV */ + "content", /* ATTR_CONTENT */ + "name", /* ATTR_NAME */ + "rel", /* ATTR_REL */ + "href", /* ATTR_HREF */ + "type", /* ATTR_TYPE */ + "media", /* ATTR_MEDIA */ + "class", /* ATTR_CLASS */ + "style", /* ATTR_STYLE */ + "width", /* ATTR_WIDTH */ + "id", /* ATTR_ID */ + "summary", /* ATTR_SUMMARY */ + "align", /* ATTR_ALIGN */ }; static void print_spec(struct html *, enum roffdeco, -- cgit v1.2.3-56-ge451