From 427f20937dc26c4e96434e02271e56292a0d1ea4 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 6 Oct 2000 13:22:24 +0000 Subject: [PATCH] Fix the `missing footer' problem. See the comment for details. Obtained from: NetBSD --- contrib/groff/tmac/doc-common | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common index f80d63c44c37..00a19133f9e3 100644 --- a/contrib/groff/tmac/doc-common +++ b/contrib/groff/tmac/doc-common @@ -319,6 +319,13 @@ .\" .tm IN 444 fM .k == \\n(.k and nl == \\n(nl .. .de lM +.\" We may still have a partial line in the enviroment. If this is the case, +.\" and we happen to be on the last line of the page, the .fl will cause the +.\" page to be ejected and troff will immediately exit. If we're in nroff +.\" mode, this would be unfortunate, since we would never get a chance to +.\" output the footer. So we fudge the page length, to make sure that the +.\" last page is never ejected until we want it to be. +.if \\n(cR .pl +3v .fl .if \\n(cR \{\ ' sp