aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitf42a91b55dfcddcdd77e9ff190a164c0bd531eb5 (patch)
tree8f04bcd668ff7082d829efcdf37e59779b5c525e /html.c
parentb9769fb9bff61e16a65f5a5ef15d86433a612671 (diff)
downloadmandoc-f42a91b55dfcddcdd77e9ff190a164c0bd531eb5.tar.gz
mandoc-f42a91b55dfcddcdd77e9ff190a164c0bd531eb5.tar.zst
mandoc-f42a91b55dfcddcdd77e9ff190a164c0bd531eb5.zip
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.c30
1 files changed, 15 insertions, 15 deletions
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 <kristaps@bsd.lv>
*
@@ -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,