summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-26 14:03:54 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-26 14:03:54 +0000
commitb3536e4d2b9fcb0daf7141c545883a7d2b442e33 (patch)
tree0a8d32a41e44b15218981b5a3d71ddba079e7c69 /man_html.c
parent878d84055a253f63524c12172dd09c9044ad0afd (diff)
downloadmandoc-b3536e4d2b9fcb0daf7141c545883a7d2b442e33.tar.gz
Allow bad -man dates to flow verbatim into the front-ends. Noted by
Ulrich Spoerlein.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index cfcc83d6..84ec64c6 100644
--- a/man_html.c
+++ b/man_html.c
@@ -308,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%");