summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-08-29 23:38:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-08-29 23:38:50 +0000
commit5e5fda418e03813767c8f6cd3ff0da1ccac926ae (patch)
treeea51faa65f0da984381c1d8f38625f97f34e4d4b
parente715af9462476af00b3a238e899359d5a56101ee (diff)
downloadmandoc-5e5fda418e03813767c8f6cd3ff0da1ccac926ae.tar.gz
1) Remove documentation of the groff-1.15 compatibility quirk
of suppressing spacing before a third .Xr argument because that quirk was removed in mdoc_macro.c rev. 1.113. 2) Mark the "section" argument to .Xr as (syntactically) optional, but still do not encourage omitting it. The missing .Op was reported by espie@. Wording tweaked by and ok jmc@, ok millert@.
-rw-r--r--mdoc.714
1 files changed, 4 insertions, 10 deletions
diff --git a/mdoc.7 b/mdoc.7
index 9b3b1265..efe96df7 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -2532,20 +2532,14 @@ Link to another manual
.Pq Qq cross-reference .
Its syntax is as follows:
.Pp
-.D1 Pf \. Sx \&Xr Ar name section
+.D1 Pf \. Sx \&Xr Ar name Op section
.Pp
-The
+Cross reference the
.Ar name
and
.Ar section
-are the name and section of the linked manual.
-If
-.Ar section
-is followed by non-punctuation, an
-.Sx \&Ns
-is inserted into the token stream.
-This behaviour is for compatibility with
-GNU troff.
+number of another man page;
+omitting the section number is rarely useful.
.Pp
Examples:
.Dl \&.Xr mandoc 1