X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/17d79257b7f65d06055aadc7b86aa5157223bfa7..dc649a73f967c1a61e60d2495f16d56db82eac57:/man_html.c diff --git a/man_html.c b/man_html.c index 5e06efa9..1534e12c 100644 --- a/man_html.c +++ b/man_html.c @@ -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.39 2010/06/27 15:52:41 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,8 +26,10 @@ #include #include +#include "mandoc.h" #include "out.h" #include "html.h" +#include "regs.h" #include "man.h" #include "main.h" @@ -250,7 +252,6 @@ a2width(const struct man_node *n, struct roffsu *su) } -/* ARGSUSED */ static int man_root_pre(MAN_ARGS) { @@ -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%");