summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-10 11:45:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-10 11:45:57 +0000
commit2ab52c64b986eeab0f0c567f016ec05fe00ef26a (patch)
tree081781ec5b552d7d2ccb58552014d4dfe251b0e3
parent060f8931727b8f4df33482e8d157392a16cf6c65 (diff)
downloadmandoc-2ab52c64b986eeab0f0c567f016ec05fe00ef26a.tar.gz
mandoc-2ab52c64b986eeab0f0c567f016ec05fe00ef26a.tar.zst
mandoc-2ab52c64b986eeab0f0c567f016ec05fe00ef26a.zip
Disable metafonts when printing document footer.
-rw-r--r--man_term.c4
-rw-r--r--mdoc_term.c5
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 <kristaps@kth.se>
*
@@ -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 <kristaps@kth.se>
*
@@ -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