summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPTPi <PTPi>2013-09-04 02:20:11 +0000
committerPTPi <PTPi>2013-09-04 02:20:11 +0000
commit0406990fa21563bfa9dff8d12166f5c1e13feb99 (patch)
treea84655ed1b6a637f5928c37106eff0c77d7eb26a
parentce1db73ec1906bca0784f364e4ce89d4fcebd0b8 (diff)
downloadgroff-0406990fa21563bfa9dff8d12166f5c1e13feb99.tar.gz
Patch supplied by Robin Haberkorn to fix issues with tbl and line
numbering.
-rw-r--r--contrib/mom/om.tmac6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/mom/om.tmac b/contrib/mom/om.tmac
index fbf36010..d017546e 100644
--- a/contrib/mom/om.tmac
+++ b/contrib/mom/om.tmac
@@ -15623,7 +15623,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
. rr #LN
. ie '\\$1'RESUME' \{\
. LN_PARAMS
-. nm +0
+. nm \\*[$LN_NUM]
. fam
. ft
. ps
@@ -15632,6 +15632,10 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
. el \{\
. LN_PARAMS
. nm
+.\" register ln is still set and may confuse preprocessors like tbl
+.\" still, resuming line numbering must be possible, so save ln in $LN_NUM
+. ds $LN_NUM \\n[ln]
+. nr ln 0
. fam
. ft
. ps