=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.166 retrieving revision 1.170 diff -u -p -r1.166 -r1.170 --- mandoc/html.c 2014/09/27 09:03:24 1.166 +++ mandoc/html.c 2014/09/27 09:26:01 1.170 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.166 2014/09/27 09:03:24 kristaps Exp $ */ +/* $Id: html.c,v 1.170 2014/09/27 09:26:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -85,10 +85,7 @@ static const char *const htmlattrs[ATTR_MAX] = { "media", /* ATTR_MEDIA */ "class", /* ATTR_CLASS */ "style", /* ATTR_STYLE */ - "width", /* ATTR_WIDTH */ "id", /* ATTR_ID */ - "summary", /* ATTR_SUMMARY */ - "align", /* ATTR_ALIGN */ "colspan", /* ATTR_COLSPAN */ "charset", /* ATTR_CHARSET */ }; @@ -198,8 +195,15 @@ print_gen_head(struct html *h) tag[0].val = "utf-8"; print_otag(h, TAG_META, 1, tag); + /* + * Print a default style-sheet. + */ t = print_otag(h, TAG_STYLE, 0, NULL); - print_text(h, "table.head, table.foot { width: 100%; }\n"); + 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" + "table.foot td { width: 50%; }\n" + "table.head td { width: 33%; }\n"); print_tagq(h, t); if (h->style) {