summaryrefslogtreecommitdiffstats
path: root/contrib/groff
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-10-06 13:22:24 +0000
committerru <ru@FreeBSD.org>2000-10-06 13:22:24 +0000
commitb9105dcb0a996eb7322a97f69a646489a21ca3d2 (patch)
tree144f5beceea4e16f99f28bc937add176b661c1c7 /contrib/groff
parent16be903415b6d2c5e4f1e058f61958eaa3ac778b (diff)
downloadFreeBSD-src-b9105dcb0a996eb7322a97f69a646489a21ca3d2.zip
FreeBSD-src-b9105dcb0a996eb7322a97f69a646489a21ca3d2.tar.gz
Fix the `missing footer' problem. See the comment for details.
Obtained from: NetBSD
Diffstat (limited to 'contrib/groff')
-rw-r--r--contrib/groff/tmac/doc-common7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common
index f80d63c..00a1913 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
OpenPOWER on IntegriCloud