From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 6138e887 for ; Wed, 25 Oct 2017 15:49:18 -0500 (EST) Date: Wed, 25 Oct 2017 15:49:18 -0500 (EST) Message-Id: <11505413309036999819.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: The page footer line (psmarg) is created in ps_begin(), and the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mandoc: term_ps.c Revision Data ------------- Index: term_ps.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/term_ps.c,v retrieving revision 1.86 retrieving revision 1.87 diff -Lterm_ps.c -Lterm_ps.c -u -p -r1.86 -r1.87 --- term_ps.c +++ 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; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv