summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-27 04:50:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-27 04:50:14 +0000
commit9be0958735739b7b5ce4a0b907fa3bca75b69020 (patch)
tree0a1f05540cce5ecec858c6c43be4472daa1c21be /man_html.c
parenteedf2a6a20e607030a337dbbed7a2c8ba56f7082 (diff)
downloadmandoc-9be0958735739b7b5ce4a0b907fa3bca75b69020.tar.gz
Added "summary" tag to tables in order to silence HTML-tidy's complaints.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/man_html.c b/man_html.c
index eb6abebf..4f5406d8 100644
--- a/man_html.c
+++ b/man_html.c
@@ -234,7 +234,7 @@ a2width(const struct man_node *n, struct roffsu *su)
static int
man_root_pre(MAN_ARGS)
{
- struct htmlpair tag[2];
+ struct htmlpair tag[3];
struct tag *t, *tt;
char b[BUFSIZ], title[BUFSIZ];
@@ -248,7 +248,9 @@ man_root_pre(MAN_ARGS)
PAIR_CLASS_INIT(&tag[0], "header");
bufcat_style(h, "width", "100%");
PAIR_STYLE_INIT(&tag[1], h);
- t = print_otag(h, TAG_TABLE, 2, tag);
+ PAIR_SUMMARY_INIT(&tag[2], "header");
+
+ t = print_otag(h, TAG_TABLE, 3, tag);
tt = print_otag(h, TAG_TR, 0, NULL);
bufinit(h);
@@ -282,7 +284,7 @@ man_root_pre(MAN_ARGS)
static void
man_root_post(MAN_ARGS)
{
- struct htmlpair tag[2];
+ struct htmlpair tag[3];
struct tag *t, *tt;
char b[DATESIZ];
@@ -291,7 +293,9 @@ man_root_post(MAN_ARGS)
PAIR_CLASS_INIT(&tag[0], "footer");
bufcat_style(h, "width", "100%");
PAIR_STYLE_INIT(&tag[1], h);
- t = print_otag(h, TAG_TABLE, 2, tag);
+ PAIR_SUMMARY_INIT(&tag[2], "footer");
+
+ t = print_otag(h, TAG_TABLE, 3, tag);
tt = print_otag(h, TAG_TR, 0, NULL);
bufinit(h);