diff options
author | wlemb <wlemb> | 2001-05-08 07:44:53 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-05-08 07:44:53 +0000 |
commit | 73b696c337bcaaf324fba6d02ff4081adeab0a10 (patch) | |
tree | 79fcf42413b545a1ba90a1f68f8dfa1549773a7b | |
parent | b655be22360e0275e96d7307fc2b06c66ebbc6ee (diff) | |
download | groff-73b696c337bcaaf324fba6d02ff4081adeab0a10.tar.gz |
fix compatibility issues with man and mdoc
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tmac/an-old.tmac | 15 | ||||
-rw-r--r-- | tmac/doc.tmac | 2 |
3 files changed, 18 insertions, 6 deletions
@@ -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! . . |