diff options
| author | Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> | 2024-01-31 20:47:13 +0300 |
|---|---|---|
| committer | Dan Cross <crossd@gmail.com> | 2025-07-27 09:58:50 -0400 |
| commit | 10564b11755ff2d48d0f5073c46571e806fa6fb4 (patch) | |
| tree | 229252742051d83558fff2352642d0f57ba66615 /tmac | |
| parent | 00446db7d8fdb3ea56fa104643b34823960f7be2 (diff) | |
tmac/tmac.an: define .MR in a groff compatible way
groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
Diffstat (limited to 'tmac')
| -rw-r--r-- | tmac/tmac.an | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmac/tmac.an b/tmac/tmac.an index 39399840..7948a153 100644 --- a/tmac/tmac.an +++ b/tmac/tmac.an @@ -209,11 +209,11 @@ .HY .}f .. -.\" MR - manual reference, as in .MR cat (1) , +.\" MR - manual reference, as in .MR cat 1 , .\" $3 is the punctuation after the reference ends, if any. .de MR .nh -.}S 2 1 \& "\Xhtml manref start \\$1 \\$2\\$1" "\\$2\Xhtml manref end \\$1 \\$2\\$3" +.}S 2 1 \& "\Xhtml manref start \\$1 (\\$2)\\$1" "(\\$2)\Xhtml manref end \\$1 (\\$2)\\$3" .HY .}f .. |