From 2f4b6c08364e683fa8c7dc7ba475a29d7c1b1c2b Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 21 Dec 2001 11:31:30 +0000 Subject: From ChangeLog: : 2001-11-16 Ruslan Ermilov : : * tmac/doc-common (doc-header): Handle very long document titles : better. PR: docs/10349 --- contrib/groff/tmac/doc-common | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'contrib') diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common index 9e1a81a..5730ce6 100644 --- a/contrib/groff/tmac/doc-common +++ b/contrib/groff/tmac/doc-common @@ -522,12 +522,25 @@ . .\" NS doc-header macro .\" NS print page header +.\" NS +.\" NS local variables: +.\" NS doc-reg-dh +.\" NS doc-reg-dh1 . .de doc-header . ev doc-env-dh . doc-setup-page-layout . if !\n[cR] \ ' sp \n[doc-header-space]u +. nr doc-reg-dh \w'\*[doc-caption-font]\*[doc-header-string]\f[P]' +. nr doc-reg-dh1 \w'\*[doc-caption-font2]\*[doc-volume]\f[P]' +. if (\n[doc-reg-dh] + \n[doc-reg-dh1] + \n[doc-reg-dh] >= \n[.lt]) \{\ +. while (\n[doc-reg-dh] + \n[doc-reg-dh1] + \n[doc-reg-dh] >= \n[.lt]) \{\ +. substring doc-header-string 1 -1 +. nr doc-reg-dh \w'\*[doc-caption-font]\*[doc-header-string]\|.\|.\|.\f[P]' +. \} +. as doc-header-string "\|.\|.\|. +. \} . tl \*[doc-caption-font]\*[doc-header-string]\f[P]\*[doc-caption-font2]\*[doc-volume]\f[P]\*[doc-caption-font]\*[doc-header-string]\f[P] ' sp \n[doc-header-space]u . ev -- cgit v1.1 From a739c6094e16cd5221c166d7bf689ab61190d527 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 21 Dec 2001 11:46:21 +0000 Subject: Bring in latest (cosmetic) vendor fixes to this file. --- contrib/groff/tmac/groff_mdoc.man | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/groff/tmac/groff_mdoc.man b/contrib/groff/tmac/groff_mdoc.man index 534c516..b4b5430 100644 --- a/contrib/groff/tmac/groff_mdoc.man +++ b/contrib/groff/tmac/groff_mdoc.man @@ -236,7 +236,8 @@ as follows: .El . .\" XXX -.ne 7 +.if t \ +. ne 7 . . .Sh "TROFF IDIOSYNCRASIES" @@ -2335,7 +2336,7 @@ macro always invokes the macro after eliminating the space unless another macro name follows it. If used as a request (i.e., the second form above in the .Sq Usage -line, +line), .Ql .Ns is identical to .Ql .No . -- cgit v1.1