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 be8b7cb6 for ; Sun, 10 Jun 2018 10:13:05 -0500 (EST) Date: Sun, 10 Jun 2018 10:13:05 -0500 (EST) 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: When formatting man(7) documents that do not contain .SH macros X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: Log Message: ----------- When formatting man(7) documents that do not contain .SH macros with -Tps or -Tpdf, do not squeeze the whole text beyond the right margin. Bug reported by Will Backman during BSDCan. Modified Files: -------------- mandoc: man_term.c Revision Data ------------- Index: man_term.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/man_term.c,v retrieving revision 1.210 retrieving revision 1.211 diff -Lman_term.c -Lman_term.c -u -p -r1.210 -r1.211 --- man_term.c +++ man_term.c @@ -1032,6 +1032,18 @@ print_man_foot(struct termp *p, const st term_word(p, title); term_flushln(p); + + /* + * Reset the terminal state for more output after the footer: + * Some output modes, in particular PostScript and PDF, print + * the header and the footer into a buffer such that it can be + * reused for multiple output pages, then go on to format the + * main text. + */ + + p->tcol->offset = 0; + p->flags = 0; + free(title); } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv