summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-20 10:40:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-20 10:40:11 +0000
commit073891eda234d3d2928f19543a8db60f02cdc36f (patch)
treed762acac59eaf2e4dae9b4aa1b5ac2d35bed1f09 /html.c
parent0f7b683510e81e238f298d0a46d4512f599fa533 (diff)
downloadmandoc-073891eda234d3d2928f19543a8db60f02cdc36f.tar.gz
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.
Diffstat (limited to 'html.c')
-rw-r--r--html.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/html.c b/html.c
index cfe5da16..f30aac09 100644
--- a/html.c
+++ b/html.c
@@ -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,