diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-20 10:40:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-20 10:40:11 +0000 |
commit | 073891eda234d3d2928f19543a8db60f02cdc36f (patch) | |
tree | d762acac59eaf2e4dae9b4aa1b5ac2d35bed1f09 /html.c | |
parent | 0f7b683510e81e238f298d0a46d4512f599fa533 (diff) | |
download | mandoc-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.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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, |