gbranden pushed a commit to branch master
in repository groff.
commit 0abb880b52719ddc2122f06abed94ababe76338a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 9 05:53:18 2024 -0500
tmac/an.tmac (MR): Don't warn if only 1 argument.
Continues commit eaa4ba6c9a, 3 March. Both `MR` implementations (here
and in "an-ext.tmac") and `Xr` in groff mdoc(7) accept a lone argument
to typeset a man page name in the correct face without hyperlinking it.
---
tmac/an.tmac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 03ea55524..d0c1727f9 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1303,8 +1303,8 @@ contains unsupported escape sequence
.\" Set a man page cross reference.
.\" .MR page-topic page-section [trailing-text]
.de1 MR
-. if ((\\n[.$] < 2) : (\\n[.$] > 3)) \
-. an-style-warn .\\$0 expects 2 or 3 arguments, got \\n[.$]
+. if ((\\n[.$] < 1) : (\\n[.$] > 3)) \
+. an-style-warn .\\$0 expects 1 to 3 arguments, got \\n[.$]
. ds an*url man:\\$1(\\$2)\"
. if (\\n[an*MR-URL-format] = 2) \
. ds an*url x-man-page://\\$2/\\$1\"
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit