summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-10-25 20:48:48 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-10-25 20:48:48 +0000
commit702760014fafcaf226d5fe8de9be99b2f291f58a (patch)
treef9046a604db386f3936d6ad15f21cc2c25a9e792 /term_ps.c
parente936503665f696a7733d9ecf37de2286ec72fc61 (diff)
downloadmandoc-702760014fafcaf226d5fe8de9be99b2f291f58a.tar.gz
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 'term_ps.c')
-rw-r--r--term_ps.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/term_ps.c b/term_ps.c
index d6f0c391..d59f4746 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -742,8 +742,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;