diff options
-rw-r--r-- | html.c | 7 | ||||
-rw-r--r-- | html.h | 3 | ||||
-rw-r--r-- | man_html.c | 9 | ||||
-rw-r--r-- | mdoc_html.c | 9 |
4 files changed, 7 insertions, 21 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.169 2014/09/27 09:20:03 kristaps Exp $ */ +/* $Id: html.c,v 1.170 2014/09/27 09:26:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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) { @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.59 2014/09/27 09:20:03 kristaps Exp $ */ +/* $Id: html.h,v 1.60 2014/09/27 09:26:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -62,7 +62,6 @@ enum htmlattr { ATTR_MEDIA, ATTR_CLASS, ATTR_STYLE, - ATTR_WIDTH, ATTR_ID, ATTR_COLSPAN, ATTR_CHARSET, @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.101 2014/09/27 09:20:03 kristaps Exp $ */ +/* $Id: man_html.c,v 1.102 2014/09/27 09:26:01 kristaps Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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 4dcc85bf..9de0c1c8 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.204 2014/09/27 09:20:03 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.205 2014/09/27 09:26:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |