summaryrefslogtreecommitdiffstats
path: root/man/man3/quote.3
diff options
context:
space:
mode:
authorDmitri Vereshchagin <dmitri.vereshchagin@gmail.com>2024-01-31 20:47:13 +0300
committerDan Cross <crossd@gmail.com>2025-07-27 09:58:50 -0400
commit10564b11755ff2d48d0f5073c46571e806fa6fb4 (patch)
tree229252742051d83558fff2352642d0f57ba66615 /man/man3/quote.3
parent00446db7d8fdb3ea56fa104643b34823960f7be2 (diff)
downloadplan9port-10564b11755ff2d48d0f5073c46571e806fa6fb4.tar.gz
plan9port-10564b11755ff2d48d0f5073c46571e806fa6fb4.zip
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 'man/man3/quote.3')
-rw-r--r--man/man3/quote.322
1 files changed, 11 insertions, 11 deletions
diff --git a/man/man3/quote.3 b/man/man3/quote.3
index 30e85bdf..5fdccdc6 100644
--- a/man/man3/quote.3
+++ b/man/man3/quote.3
@@ -58,10 +58,10 @@ The empty string is represented by two quotes,
The first four functions act as variants of
.B strdup
(see
-.MR strcat (3) ).
+.MR strcat 3 ).
Each returns a
freshly allocated copy of the string, created using
-.MR malloc (3) .
+.MR malloc 3 .
.I Quotestrdup
returns a quoted copy of
.IR s ,
@@ -75,7 +75,7 @@ The
versions of these functions do the same for
.CW Rune
strings (see
-.MR runestrcat (3) ).
+.MR runestrcat 3 ).
.PP
The string returned by
.I quotestrdup
@@ -124,13 +124,13 @@ blanks, control characters, and quotes are always quoted.
is provided as a
.I doquote
function that flags any character special to
-.MR rc (1) .
+.MR rc 1 .
.PP
.I Quotestrfmt
and
.I quoterunestrfmt
are
-.MR print (3)
+.MR print 3
formatting routines that produce quoted strings as output.
They may be installed by hand, but
.I quotefmtinstall
@@ -154,21 +154,21 @@ statements so the compiler can type-check uses of
and
.B %Q
in
-.MR print (3)
+.MR print 3
format strings.
.SH SOURCE
.B \*9/src/lib9/quote.c
.br
.B \*9/src/lib9/fmt/fmtquote.c
.SH "SEE ALSO
-.MR rc (1) ,
-.MR malloc (3) ,
-.MR print (3) ,
-.MR strcat (3)
+.MR rc 1 ,
+.MR malloc 3 ,
+.MR print 3 ,
+.MR strcat 3
.SH BUGS
Because it is provided by the format library,
.I doquote
is a preprocessor macro defined as
.IR fmtdoquote ;
see
-.MR intro (3) .
+.MR intro 3 .