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.
This commit is contained in:
Russ Cox 2020-08-13 23:41:59 -04:00
parent a1c4307800
commit 977b25a76a
297 changed files with 1790 additions and 1774 deletions

View file

@ -27,7 +27,7 @@ searches the input
for lines that match the
.IR pattern ,
a regular expression as defined in
.IR regexp (7)
.IM regexp (7)
with the addition of a newline character as an alternative
(substitute for
.BR | )
@ -114,11 +114,11 @@ If no files are listed, it searches all files matching
.br
.B \*9/bin/g
.SH SEE ALSO
.IR ed (1),
.IR awk (1),
.IR sed (1),
.IR sam (1),
.IR regexp (7)
.IM ed (1) ,
.IM awk (1) ,
.IM sed (1) ,
.IM sam (1) ,
.IM regexp (7)
.SH DIAGNOSTICS
Exit status is null if any lines are selected,
or non-null when no lines are selected or an error occurs.