diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-10-25 20:48:48 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-10-25 20:48:48 +0000 |
commit | 702760014fafcaf226d5fe8de9be99b2f291f58a (patch) | |
tree | f9046a604db386f3936d6ad15f21cc2c25a9e792 /term_ps.c | |
parent | e936503665f696a7733d9ecf37de2286ec72fc61 (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |