summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-09-27 09:26:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-09-27 09:26:01 +0000
commitb4b566f2e27b30860a34ca722167ff748d29060d (patch)
tree823bbd3030622f85d4f9ff3522e047882d93c262
parent9a0c4c4571a9055eab5a14fcee755c5dde12f643 (diff)
downloadmandoc-b4b566f2e27b30860a34ca722167ff748d29060d.tar.gz
Remove last hard-coded width attribute.
-rw-r--r--html.c5
-rw-r--r--html.h1
-rw-r--r--man_html.c7
-rw-r--r--mdoc_html.c7
4 files changed, 3 insertions, 17 deletions
diff --git a/html.c b/html.c
index 86ec9452..b7d94dbf 100644
--- a/html.c
+++ b/html.c
@@ -85,7 +85,6 @@ static const char *const htmlattrs[ATTR_MAX] = {
"media", /* ATTR_MEDIA */
"class", /* ATTR_CLASS */
"style", /* ATTR_STYLE */
- "width", /* ATTR_WIDTH */
"id", /* ATTR_ID */
"colspan", /* ATTR_COLSPAN */
"charset", /* ATTR_CHARSET */
@@ -202,7 +201,9 @@ print_gen_head(struct html *h)
t = print_otag(h, TAG_STYLE, 0, NULL);
print_text(h, "table.head, table.foot { width: 100%; }\n"
"td.head-rtitle, td.foot-os { text-align: right; }\n"
- "td.head-vol { text-align: center; }\n");
+ "td.head-vol { text-align: center; }\n"
+ "table.foot td { width: 50%; }\n"
+ "table.head td { width: 33%; }\n");
print_tagq(h, t);
if (h->style) {
diff --git a/html.h b/html.h
index b2087049..04b924a6 100644
--- a/html.h
+++ b/html.h
@@ -62,7 +62,6 @@ enum htmlattr {
ATTR_MEDIA,
ATTR_CLASS,
ATTR_STYLE,
- ATTR_WIDTH,
ATTR_ID,
ATTR_COLSPAN,
ATTR_CHARSET,
diff --git a/man_html.c b/man_html.c
index ef51b8fd..74d2a4e5 100644
--- a/man_html.c
+++ b/man_html.c
@@ -309,10 +309,6 @@ man_root_pre(MAN_ARGS)
PAIR_CLASS_INIT(&tag, "head");
t = print_otag(h, TAG_TABLE, 1, &tag);
- PAIR_INIT(&tag, ATTR_WIDTH, "30%");
- print_otag(h, TAG_COL, 1, &tag);
- print_otag(h, TAG_COL, 1, &tag);
- print_otag(h, TAG_COL, 1, &tag);
print_otag(h, TAG_TBODY, 0, NULL);
@@ -344,9 +340,6 @@ man_root_post(MAN_ARGS)
PAIR_CLASS_INIT(&tag, "foot");
t = print_otag(h, TAG_TABLE, 1, &tag);
- PAIR_INIT(&tag, ATTR_WIDTH, "50%");
- print_otag(h, TAG_COL, 1, &tag);
- print_otag(h, TAG_COL, 1, &tag);
tt = print_otag(h, TAG_TR, 0, NULL);
diff --git a/mdoc_html.c b/mdoc_html.c
index 59eda03b..87170dbe 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -489,9 +489,6 @@ mdoc_root_post(MDOC_ARGS)
PAIR_CLASS_INIT(&tag, "foot");
t = print_otag(h, TAG_TABLE, 1, &tag);
- PAIR_INIT(&tag, ATTR_WIDTH, "50%");
- print_otag(h, TAG_COL, 1, &tag);
- print_otag(h, TAG_COL, 1, &tag);
print_otag(h, TAG_TBODY, 0, NULL);
@@ -529,10 +526,6 @@ mdoc_root_pre(MDOC_ARGS)
PAIR_CLASS_INIT(&tag, "head");
t = print_otag(h, TAG_TABLE, 1, &tag);
- PAIR_INIT(&tag, ATTR_WIDTH, "30%");
- print_otag(h, TAG_COL, 1, &tag);
- print_otag(h, TAG_COL, 1, &tag);
- print_otag(h, TAG_COL, 1, &tag);
print_otag(h, TAG_TBODY, 0, NULL);