diff options
author | ru <ru@FreeBSD.org> | 2002-10-09 08:48:56 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-10-09 08:48:56 +0000 |
commit | 344968933a4e22495e3219b9bcfe1c42e93e91d2 (patch) | |
tree | e2768d18d0443191aa44d77875b8226bbfbe30b5 /contrib/groff | |
parent | 08cbf20fd9f8f5239febe5e6b68729c649425242 (diff) | |
download | FreeBSD-src-344968933a4e22495e3219b9bcfe1c42e93e91d2.zip FreeBSD-src-344968933a4e22495e3219b9bcfe1c42e93e91d2.tar.gz |
MFV:
- Suppress additional whitespace after the subsection header (.Ss).
(This affects a tiny number of our manpages.)
- Allow for a layout customization of the OS name in the document
title (.Dt). (Needed for Russian and French manpages.)
Diffstat (limited to 'contrib/groff')
-rw-r--r-- | contrib/groff/tmac/doc-common | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common index c1adb70..323d74f 100644 --- a/contrib/groff/tmac/doc-common +++ b/contrib/groff/tmac/doc-common @@ -232,6 +232,7 @@ .\" an alternative, more detailed scheme for naming the manual sections .\" .ds doc-volume-operating-system BSD +.nr doc-volume-operating-system-ateol 0 .ds doc-volume-ds-1 General Commands Manual .ds doc-volume-ds-2 System Calls Manual .ds doc-volume-ds-3 Library Functions Manual @@ -306,13 +307,20 @@ . ds doc-section \$2 . ie \B\$2 \{\ . if ((\$2 >= 1) & (\$2 <= 9)) \{\ -. ds doc-volume "\*[doc-volume-operating-system] -. if \A\$3 \{\ -. if d doc-volume-as-\$3 \ -. as doc-volume "/\*[doc-volume-as-\$3] -. \} -. as doc-volume " \*[doc-volume-ds-\$2] -. \}\} +. ie \n[doc-volume-operating-system-ateol] \{\ +. ds doc-volume "\*[doc-volume-ds-\$2] \*[doc-volume-operating-system] +. if \A\$3 \{\ +. if d doc-volume-as-\$3 \ +. as doc-volume "/\*[doc-volume-as-\$3] +. \}\} +. el \{\ +. ds doc-volume "\*[doc-volume-operating-system] +. if \A\$3 \{\ +. if d doc-volume-as-\$3 \ +. as doc-volume "/\*[doc-volume-as-\$3] +. \} +. as doc-volume " \*[doc-volume-ds-\$2] +. \}\}\} . el \{\ . ie "\$2"unass" .ds doc-volume DRAFT . el \{ .ie "\$2"draft" .ds doc-volume DRAFT @@ -885,6 +893,7 @@ . if !\n[cR] \ . ne 2 . br +. ns . \} .. . |