source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: When formatting man(7) documents that do not contain .SH macros
@ 2018-06-10 15:13 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-06-10 15:13 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-10 15:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-10 15:13 mandoc: When formatting man(7) documents that do not contain .SH macros schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).