summaryrefslogtreecommitdiffstats
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
commit876f41fda129a014ca0587ee5be314bcbf7bb683 (patch)
treeb8cd4c5763216a57ae5a986ce60b89b508bcf898
parenta660eb073010bda46b3d8d5731991ca036d0f1af (diff)
downloadmandoc-876f41fda129a014ca0587ee5be314bcbf7bb683.tar.gz
Disable metafonts when printing document footer.
-rw-r--r--man_term.c2
-rw-r--r--mdoc_term.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/man_term.c b/man_term.c
index 5d8bc642..ed252ba9 100644
--- a/man_term.c
+++ b/man_term.c
@@ -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 ee2bdd3e..ba89561b 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -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