From 73b696c337bcaaf324fba6d02ff4081adeab0a10 Mon Sep 17 00:00:00 2001 From: wlemb Date: Tue, 8 May 2001 07:44:53 +0000 Subject: fix compatibility issues with man and mdoc --- tmac/an-old.tmac | 15 ++++++++++----- tmac/doc.tmac | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'tmac') 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! . . -- cgit v1.2.1