=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.34 retrieving revision 1.37 diff -u -p -r1.34 -r1.37 --- mandoc/man_html.c 2010/05/17 10:50:32 1.34 +++ mandoc/man_html.c 2010/06/19 20:46:28 1.37 @@ -1,6 +1,6 @@ -/* $Id: man_html.c,v 1.34 2010/05/17 10:50:32 joerg Exp $ */ +/* $Id: man_html.c,v 1.37 2010/06/19 20:46:28 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009 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 @@ -26,6 +26,7 @@ #include #include +#include "mandoc.h" #include "out.h" #include "html.h" #include "man.h" @@ -307,7 +308,10 @@ man_root_post(MAN_ARGS) struct tag *t, *tt; char b[DATESIZ]; - time2a(m->date, b, DATESIZ); + if (m->rawdate) + strlcpy(b, m->rawdate, DATESIZ); + else + time2a(m->date, b, DATESIZ); PAIR_CLASS_INIT(&tag[0], "footer"); bufcat_style(h, "width", "100%");