=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_html.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/mandoc/man_html.c 2009/10/27 21:40:07 1.2 --- src/usr.bin/mandoc/man_html.c 2009/12/22 23:58:00 1.3 *************** *** 1,4 **** ! /* $Id: man_html.c,v 1.2 2009/10/27 21:40:07 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: man_html.c,v 1.3 2009/12/22 23:58:00 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * *************** *** 18,24 **** #include #include - #include #include #include #include --- 18,23 ---- *************** *** 229,235 **** static int man_root_pre(MAN_ARGS) { ! struct htmlpair tag[2]; struct tag *t, *tt; char b[BUFSIZ], title[BUFSIZ]; --- 228,234 ---- static int man_root_pre(MAN_ARGS) { ! struct htmlpair tag[3]; struct tag *t, *tt; char b[BUFSIZ], title[BUFSIZ]; *************** *** 243,249 **** 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); tt = print_otag(h, TAG_TR, 0, NULL); bufinit(h); --- 242,250 ---- PAIR_CLASS_INIT(&tag[0], "header"); bufcat_style(h, "width", "100%"); PAIR_STYLE_INIT(&tag[1], h); ! PAIR_SUMMARY_INIT(&tag[2], "header"); ! ! t = print_otag(h, TAG_TABLE, 3, tag); tt = print_otag(h, TAG_TR, 0, NULL); bufinit(h); *************** *** 277,283 **** static void man_root_post(MAN_ARGS) { ! struct htmlpair tag[2]; struct tag *t, *tt; char b[DATESIZ]; --- 278,284 ---- static void man_root_post(MAN_ARGS) { ! struct htmlpair tag[3]; struct tag *t, *tt; char b[DATESIZ]; *************** *** 286,292 **** 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); tt = print_otag(h, TAG_TR, 0, NULL); bufinit(h); --- 287,295 ---- PAIR_CLASS_INIT(&tag[0], "footer"); bufcat_style(h, "width", "100%"); PAIR_STYLE_INIT(&tag[1], h); ! PAIR_SUMMARY_INIT(&tag[2], "footer"); ! ! t = print_otag(h, TAG_TABLE, 3, tag); tt = print_otag(h, TAG_TR, 0, NULL); bufinit(h); *************** *** 325,330 **** --- 328,336 ---- bufcat_su(h, "height", &su); PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_DIV, 1, &tag); + /* So the div isn't empty: */ + print_text(h, "\\~"); + return(0); }