diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-26 14:03:54 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-26 14:03:54 +0000 |
commit | d43a3b25e58b22f878cf000f42454792b509cd9d (patch) | |
tree | f725f25c5608192f76806b2200ac2124e11c1c92 /man_html.c | |
parent | edebd366803524ac2fde5ebf8a576ea4c29dabc3 (diff) | |
download | mandoc-d43a3b25e58b22f878cf000f42454792b509cd9d.tar.gz mandoc-d43a3b25e58b22f878cf000f42454792b509cd9d.tar.zst mandoc-d43a3b25e58b22f878cf000f42454792b509cd9d.zip |
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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.35 2010/05/17 22:11:42 kristaps Exp $ */ +/* $Id: man_html.c,v 1.36 2010/05/26 14:03:54 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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%"); |