diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-10-25 20:48:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-10-25 20:48:18 +0000 |
commit | 209083e57d13fe86d37965a509daf2c7e43c1c5f (patch) | |
tree | 35abb8140185f10a0b9fcac7bcdde58f5e312259 /usr.bin/mandoc | |
parent | 85c1fe8dce3181720f253000d16c81765c8e8720 (diff) |
The page footer line (psmarg) is created in ps_begin(), and the
last call writing to it is always ps_endline(), which ends with
ps_pclose(), which prints "ET" (end text).
Consequently, do not print another instance of "ET" in ps_closepage()
after the footer line and before the "endstream" for the page.
Fixing a PDF syntax error found while investigating the bug report
from Jan Stary that also resulted in the previous commit.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/term_ps.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/term_ps.c b/usr.bin/mandoc/term_ps.c index 90ac518d764..27d439ff05d 100644 --- a/usr.bin/mandoc/term_ps.c +++ b/usr.bin/mandoc/term_ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: term_ps.c,v 1.50 2017/10/25 18:51:04 schwarze Exp $ */ +/* $OpenBSD: term_ps.c,v 1.51 2017/10/25 20:48:17 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -738,8 +738,6 @@ ps_closepage(struct termp *p) ps_printf(p, "%s", p->ps->psmarg); if (TERMTYPE_PS != p->type) { - ps_printf(p, "ET\n"); - len = p->ps->pdfbytes - p->ps->pdflastpg; base = p->ps->pages * 4 + p->ps->pdfbody; |