From 977b25a76ae8263e53fb4eb1abfc395769f23e3d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 13 Aug 2020 23:41:59 -0400 Subject: tmac: introduce real manual reference macro instead of overloading IR The overloading of IR emits magic \X'...' sequences that turn into HTML manual links. But not all such IR invocations should be manual links; those had to be written to avoid the IR macro before. Worse, the \X'...' ending the IR causes troff to emit only a single space after a period. Defining a new IM macro for manual references fixes both problems. Fixes #441. --- tmac/tmac.an | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tmac') diff --git a/tmac/tmac.an b/tmac/tmac.an index 6d2e9c59..c759a59e 100644 --- a/tmac/tmac.an +++ b/tmac/tmac.an @@ -205,7 +205,12 @@ .. .de IR .nh -.}S 2 1 \& "\Xhtml manref start \\$1 \\$2\\$1" "\\$2\Xhtml manref end \\$1 \\$2" "\\$3" "\\$4" "\\$5" "\\$6" +.}S 2 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" +.HY +.}f +.. +.de IM +.}S 2 1 \& "\Xhtml manref start \\$1 \\$2\\$1" "\\$2\Xhtml manref end \\$1 \\$2\\$3" .HY .}f .. -- cgit v1.2.3