summaryrefslogtreecommitdiffstatshomepage
path: root/man_term.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
commitd43a3b25e58b22f878cf000f42454792b509cd9d (patch)
treef725f25c5608192f76806b2200ac2124e11c1c92 /man_term.c
parentedebd366803524ac2fde5ebf8a576ea4c29dabc3 (diff)
downloadmandoc-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_term.c')
-rw-r--r--man_term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index c6b3dc06..c637a309 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.71 2010/05/17 22:11:42 kristaps Exp $ */
+/* $Id: man_term.c,v 1.72 2010/05/26 14:03:54 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -864,7 +864,10 @@ print_man_foot(struct termp *p, const struct man_meta *meta)
term_fontrepl(p, TERMFONT_NONE);
- time2a(meta->date, buf, DATESIZ);
+ if (meta->rawdate)
+ strlcpy(buf, meta->rawdate, DATESIZ);
+ else
+ time2a(meta->date, buf, DATESIZ);
term_vspace(p);
term_vspace(p);