From 2ab52c64b986eeab0f0c567f016ec05fe00ef26a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 10 Nov 2009 11:45:57 +0000 Subject: Disable metafonts when printing document footer. --- man_term.c | 4 +++- mdoc_term.c | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/man_term.c b/man_term.c index c400d91c..c7537ab7 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.49 2009/11/05 08:39:36 kristaps Exp $ */ +/* $Id: man_term.c,v 1.50 2009/11/10 11:45:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -898,6 +898,8 @@ print_man_foot(struct termp *p, const struct man_meta *meta) { char buf[DATESIZ]; + p->metafont = 0; + time2a(meta->date, buf, DATESIZ); term_vspace(p); diff --git a/mdoc_term.c b/mdoc_term.c index 1c89f1da..50fbc59c 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.100 2009/10/31 06:50:25 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.101 2009/11/10 11:45:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -349,6 +349,9 @@ print_foot(DECL_ARGS) { char buf[DATESIZ], os[BUFSIZ]; + /* Disable meta-fonts. */ + p->metafont = 0; + /* * Output the footer in new-groff style, that is, three columns * with the middle being the manual date and flanking columns -- cgit v1.2.3