=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.69 retrieving revision 1.71 diff -u -p -r1.69 -r1.71 --- mandoc/man_html.c 2011/02/09 09:52:47 1.69 +++ mandoc/man_html.c 2011/05/17 11:19:45 1.71 @@ -1,6 +1,6 @@ -/* $Id: man_html.c,v 1.69 2011/02/09 09:52:47 kristaps Exp $ */ +/* $Id: man_html.c,v 1.71 2011/05/17 11:19:45 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -158,7 +158,7 @@ print_man_head(MAN_ARGS) print_gen_head(h); bufinit(h); - buffmt(h, "%s(%s)", m->title, m->msec); + bufcat_fmt(h, "%s(%s)", m->title, m->msec); print_otag(h, TAG_TITLE, 0, NULL); print_text(h, h->buf); @@ -352,13 +352,7 @@ man_root_post(MAN_ARGS) { struct htmlpair tag[3]; struct tag *t, *tt; - char b[DATESIZ]; - if (m->rawdate) - strlcpy(b, m->rawdate, DATESIZ); - else - time2a(m->date, b, DATESIZ); - PAIR_SUMMARY_INIT(&tag[0], "Document Footer"); PAIR_CLASS_INIT(&tag[1], "foot"); if (NULL == h->style) { @@ -375,7 +369,7 @@ man_root_post(MAN_ARGS) PAIR_CLASS_INIT(&tag[0], "foot-date"); print_otag(h, TAG_TD, 1, tag); - print_text(h, b); + print_text(h, m->date); print_stagq(h, tt); PAIR_CLASS_INIT(&tag[0], "foot-os");