shithub: neatroff

Download patch

ref: 42fd41d63ac18c6eee229dc4c4b6c19d30b30b9f
parent: c52cc17e882fbf6463f188acdeb5c1c75b3ff4a4
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Jun 4 05:50:10 EDT 2014

ren: output completed lines with 'br

Now 'br causes completed lines to be output (but not the last partial
line).  This is useful when using whole-paragraph formatting; for
instance, when collecting footnotes, inserting a 'br in .FS makes
sure that the footnotes will not appear in the wrong page.

--- a/ren.c
+++ b/ren.c
@@ -392,6 +392,7 @@
 
 void tr_br(char **args)
 {
+	ren_fmtpopall(cfmt);	/* output the completed lines first */
 	if (args[0][0] == c_cc)
 		ren_br();
 }