From c8a470de42c0993f5d4621897f7b22887462fc32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 24 Jun 2021 01:05:39 +0200 Subject: Use Heirloom troff Mg is now tested with both GNU and Heirloom troff. --- t/Makefile | 4 ++-- t/ne.t | 3 +-- t/t.tmac | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 't') diff --git a/t/Makefile b/t/Makefile index 122da6d..f278324 100644 --- a/t/Makefile +++ b/t/Makefile @@ -9,7 +9,7 @@ g.tmac: ../g.tmac .t.T: g.tmac t.tmac @echo -- $< ----------------------- - @groff -z $< + @troff -x3 $< >/dev/null .t.pdf: g.tmac t.tmac - groff -Tps $< | ps2pdf - > $@ + troff -x3 $< | dpost | ps2pdf - > $@ diff --git a/t/ne.t b/t/ne.t index bf464b3..f0434ae 100644 --- a/t/ne.t +++ b/t/ne.t @@ -15,8 +15,7 @@ macro. .\" make space at bottom of page .de @ . rs -. rt 0 -. sp \n(.pu-\n(mbu-\\$1-1u +. sp |\n(.pu-\n(mbu-\\$1-1u . nr a \\n% .. . diff --git a/t/t.tmac b/t/t.tmac index 2a04f77..223babe 100644 --- a/t/t.tmac +++ b/t/t.tmac @@ -8,16 +8,16 @@ .de assert .ec ` .ie `$1 \{\ -. tm1 " success +. tm success .\} .ec .el \{\ -. if \\nF<\\nt .tm1 " failure: +. if \\nF<\\nt .tm failure: .ec ` . ds *exp `$1 .ec -. tm1 "{ \\*[*exp] -. if !'\\*[*exp]'\\$1' . tm1 "} \\$1 +. tm { \\*[*exp] +. if !'\\*[*exp]'\\$1' . tm } \\$1 . nr f +1 . nr F \\nt .\} -- cgit v1.2.3