summaryrefslogtreecommitdiff
path: root/tmac
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-05-08 07:44:53 +0000
committerwlemb <wlemb>2001-05-08 07:44:53 +0000
commit73b696c337bcaaf324fba6d02ff4081adeab0a10 (patch)
tree79fcf42413b545a1ba90a1f68f8dfa1549773a7b /tmac
parentb655be22360e0275e96d7307fc2b06c66ebbc6ee (diff)
downloadgroff-73b696c337bcaaf324fba6d02ff4081adeab0a10.tar.gz
fix compatibility issues with man and mdoc
Diffstat (limited to 'tmac')
-rw-r--r--tmac/an-old.tmac15
-rw-r--r--tmac/doc.tmac2
2 files changed, 11 insertions, 6 deletions
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 75c1ff16..49264d76 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -38,6 +38,9 @@
.nr _C \n(.C
.cp 0
.
+.if (\n[.x]\n[.y]\n[.Y] < 1171) \
+. ab You need GNU troff version 1.17.1 or higher to run this version of man!
+.
.if !r D .nr D 0
.if !r C .nr C 0
.if !r S .nr S 10
@@ -459,13 +462,15 @@
. in \\n[an-margin]u
..
.
-.ds S \s[\\n[PS]]
-.ie c\[rg] .ds R \[rg]
+.\" these strings must work in compatibility mode also
+.
+.ds S \s(\\n(PS
+.ie c\[rg] .ds R \(rg
.el .ds R (Reg.)
-.ie c\[tm] .ds Tm \[tm]
+.ie c\[tm] .ds Tm \(tm
.el .ds Tm (TM)
-.ds lq \[lq]
-.ds rq \[rq]
+.ds lq \(lq
+.ds rq \(rq
.
.if !\n[an-html] .hy 14
.
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 815e3d46..74661939 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -54,7 +54,7 @@
.cp 0
.
.
-.if ((\n[.x] == 0) : ((\n[.x] == 1) & (\n[.y] < 17))) \
+.if (\n[.x]\n[.y] < 117) \
. ab You need GNU troff version 1.17 or higher to run this version of mdoc!
.
.