From cbff67b0d631d4d131e896b8250781aac7de0939 Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Tue, 10 Sep 2024 05:34:36 -0500 Subject: [PATCH] doc/tmac.nh: Fix mistaken syntax. The forthcoming groff 1.24 has a new diagnostic that detects ill-formed numeric expressions. It has found one here. I'm not positive what was intended here, but it may have been an attempt to force interpretation of the first macro argument as a number. This change employs a more idiomatic (but still old-school) technique. The salient fact is that, in *roff, you can't affix a scaling unit after a closing parenthesis (or another scaling unit). In GNU troff the `\B` escape sequence, an extension, permits the testing of putative numeric expressions for validity. troff:./doc/Guidebook.mn:268: warning: expected end of line or an auto-increment argument in register definition request; got character 'v' See . --- doc/tmac.nh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tmac.nh b/doc/tmac.nh index d4dd18a11..074e6df59 100644 --- a/doc/tmac.nh +++ b/doc/tmac.nh @@ -122,7 +122,7 @@ .\" $1 - repeat count for amount of padding (optional; default is 1) .de BR .ie \\.$==0 .nr bR 1v -.el .nr bR (\\$1-0)v +.el .nr bR 0\\$1v \0 .sp \\n(bR .br