From e318d21afc8190836c511a2a6e8d86a9603bcdcb Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Tue, 10 Sep 2024 05:40:47 -0500 Subject: [PATCH] doc/tmac.nh (ED): Don't dedent below zero. This quietens several warnings from GNU troff in the "range" category. troff: backtrace: './doc/tmac.nh':92: macro 'ED' troff: backtrace: file './doc/Guidebook.mn':5950 troff:./doc/Guidebook.mn:5950: warning: treating -120u indentation as zero Unfortunately, the similar `ed` macro in Bishop's "mn" package contributes several more. But with this change (and its forerunners in this series), the NetHack Guidebook is now warning-free with "-wall -Wtab -Wrange" ("mn" has problems with tab characters too), even with the increasingly fastidious syntactical checks of the forthcoming groff 1.24 release. --- doc/tmac.nh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/tmac.nh b/doc/tmac.nh index 074e6df59..fce6f786d 100644 --- a/doc/tmac.nh +++ b/doc/tmac.nh @@ -89,7 +89,8 @@ . if \\n(id=0 \{\ . di \" end diversion . fi \" resume filling -. in -\\n(piu \" dedent +. ie \\n(.i<\\n(pi .in 0 +. el .in -\\n(piu \" dedent . ev \" pop environment . ne \\n(dnu \" be sure you have room . nf \" don't reprocess display