summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-12-21 11:31:30 +0000
committerru <ru@FreeBSD.org>2001-12-21 11:31:30 +0000
commit2f4b6c08364e683fa8c7dc7ba475a29d7c1b1c2b (patch)
tree7101034a5f8dac60beef48a7534a35550928be3b /contrib
parent5b73377aa77632cce67dff01432427741ee53d47 (diff)
downloadFreeBSD-src-2f4b6c08364e683fa8c7dc7ba475a29d7c1b1c2b.zip
FreeBSD-src-2f4b6c08364e683fa8c7dc7ba475a29d7c1b1c2b.tar.gz
From ChangeLog:
: 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org> : : * tmac/doc-common (doc-header): Handle very long document titles : better. PR: docs/10349
Diffstat (limited to 'contrib')
-rw-r--r--contrib/groff/tmac/doc-common13
1 files changed, 13 insertions, 0 deletions
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
OpenPOWER on IntegriCloud