summaryrefslogtreecommitdiff
path: root/sys/lib/tmac
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-01-23 21:28:22 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-01-23 21:28:22 +0100
commiteb7eea0bb9012b6a1b544555e60f6e56af688cab (patch)
treecf4bfdc8ffb239072f94892032dc3bb6cdf07cbd /sys/lib/tmac
parentd1a0091b56805d881fd6675ea6dae96929bd8e7f (diff)
troff: fix -ms mug (thanks aksr)
Executing .KS after .1C exhibits a bug. Instead on the next page, the text between .KS and .KE is shown at the bottom of the page (where footnote would be). To reproduce the bug: http://sprunge.us/xyCUX7 The bug can be fixed by changing two lines in tmac.s: if \\n(NX<1 .bp\} to if \\n(NX<=1 .bp\} and if \\n(NX<1 'bp\} to if \\n(NX<=1 'bp\}
Diffstat (limited to 'sys/lib/tmac')
-rw-r--r--sys/lib/tmac/tmac.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/tmac/tmac.s b/sys/lib/tmac/tmac.s
index 496dae72d..3b0b3bcf3 100644
--- a/sys/lib/tmac/tmac.s
+++ b/sys/lib/tmac/tmac.s
@@ -972,7 +972,7 @@ Computing Science Technical Report No. \\*(MN
.fi
.if (\\n(nl+1v)>(\\n(.p-\\n(FM) \{\
. if \\n(NX>1 .RC
-. if \\n(NX<1 .bp\}
+. if \\n(NX<=1 .bp\}
.nr TD 0
..
.de KD
@@ -1020,7 +1020,7 @@ Computing Science Technical Report No. \\*(MN
.if !\\n(dn .nr WF 0
.if \\n(FC<=1 .if \\n(XX=0 \{\
. if \\n(NX>1 .RC
-. if \\n(NX<1 'bp\}
+. if \\n(NX<=1 'bp\}
.nr FC -1
.if \\n(ML>0 .ne \\n(MLu
..