summaryrefslogtreecommitdiff
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
parentb655be22360e0275e96d7307fc2b06c66ebbc6ee (diff)
downloadgroff-73b696c337bcaaf324fba6d02ff4081adeab0a10.tar.gz
fix compatibility issues with man and mdoc
-rw-r--r--ChangeLog7
-rw-r--r--tmac/an-old.tmac15
-rw-r--r--tmac/doc.tmac2
3 files changed, 18 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f7df796..0baf537c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-05-08 Werner LEMBERG <wl@gnu.org>
+
+ * tmac/an-old.tmac: Make predefined strings work in compatibility
+ mode.
+ Add troff version guard.
+ * tmac/doc.tmac: Simplify version guard.
+
2001-05-07 Werner LEMBERG <wl@gnu.org>
The .ns and .rs requests are now honoured not only in the top-level
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!
.
.