summaryrefslogtreecommitdiffstats
path: root/contrib/groff
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-02-08 11:22:34 +0000
committerru <ru@FreeBSD.org>2001-02-08 11:22:34 +0000
commitc6476ac6e9dcb5c8d5f5e9429907c6919f00d2ed (patch)
treeb7c2025638354105dc8ccee0048d3c8ed971ab1d /contrib/groff
parent2b9e4b5e9be55b9cc22c8aed97136f9feeb73309 (diff)
downloadFreeBSD-src-c6476ac6e9dcb5c8d5f5e9429907c6919f00d2ed.zip
FreeBSD-src-c6476ac6e9dcb5c8d5f5e9429907c6919f00d2ed.tar.gz
Fixed the .Xr macro so that it produces the right spacing
and no hyphenation is possible on a dash (`-') character. Ported from: mdocNG
Diffstat (limited to 'contrib/groff')
-rw-r--r--contrib/groff/tmac/tmac.doc24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/groff/tmac/tmac.doc b/contrib/groff/tmac/tmac.doc
index e1f87c9..ec9a11b 100644
--- a/contrib/groff/tmac/tmac.doc
+++ b/contrib/groff/tmac/tmac.doc
@@ -2254,6 +2254,7 @@
.nr v1 0
.nr tY 1
.\" NS Xr macro - cross reference (man page only)
+.\" NS jM local register
.de Xr
.if \\n(aC==0 \{\
. ie \\n(.$==0 .tm Usage: .Xr manpage_name [section#] \\*(Pu (#\\n(.c)
@@ -2264,21 +2265,20 @@
.\}
.if \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
-. ie \\n(C\\n(aP==1 .tm Usage: .Xr manpage_name [section#] \\*(Pu (#\\n(.c)
+. ie !\\n(C\\n(aP==2 .tm Usage: .Xr manpage_name [section#] \\*(Pu (#\\n(.c)
. el \{\
-. ie \\n(C\\n(aP>2 .y\\n(C\\n(aP
-. el \{\
-. as b1 \&\\*(xR\\*(A\\n(aP\fP\s0
-. nr aP \\n(aP+1
-. if \\n(aC>=\\n(aP \{\
-. if \\n(C\\n(aP==2 \{\
-. as b1 \&(\\*(A\\n(aP)
-. nr aP \\n(aP+1
-. \}
+. ds A\\n(aP \\*(xR\\*(A\\n(aP\fP\s0
+. if \\n(aC>\\n(aP \{\
+. nr jM \\n(aP+1
+. if \\n(C\\n(jM==2 \{\
+. ds A\\n(jM \\*(lp\\*(A\\n(jM\\*(rp
+. ds S\\n(aP
. \}
-. ie \\n(aC>=\\n(aP .c\\n(C\\n(aP
-. el .aZ
+. rr jM
. \}
+. nr cF \\n(.f
+. nr cZ \\n(.s
+. nR
. \}
.\}
..
OpenPOWER on IntegriCloud