summaryrefslogtreecommitdiffstats
path: root/contrib/groff
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-05-19 14:37:41 +0000
committerru <ru@FreeBSD.org>2003-05-19 14:37:41 +0000
commitaed07476245e2155716c10a1be5e1c1cc5725740 (patch)
treed95cc764552fcf63066ad1e7a94f0678f7d22894 /contrib/groff
parent13b8a43155f1170911fe84e6ced1b19a19164c41 (diff)
downloadFreeBSD-src-aed07476245e2155716c10a1be5e1c1cc5725740.zip
FreeBSD-src-aed07476245e2155716c10a1be5e1c1cc5725740.tar.gz
Apply a vendor fix for one problem with tagged lists. From ChangeLog:
2003-05-18 Werner LEMBERG <wl@gnu.org> * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag to make items work which consist only of a tag. 2003-05-17 Werner LEMBERG <wl@gnu.org> * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces aren't stretched in a tag (this can fail with unformatted boxes). Instead, insert a break and go back one line. Approved by: re (blanket)
Diffstat (limited to 'contrib/groff')
-rw-r--r--contrib/groff/tmac/doc.tmac15
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/groff/tmac/doc.tmac b/contrib/groff/tmac/doc.tmac
index 290431a..97672b3 100644
--- a/contrib/groff/tmac/doc.tmac
+++ b/contrib/groff/tmac/doc.tmac
@@ -3959,15 +3959,16 @@
. ti -\n[doc-reg-dtl]u
.
. nh
-. ie (\n[dl]u > \n[doc-list-indent-stack\n[doc-list-depth]]u) \{\
-. doc-item-box\n[doc-list-depth]
+. doc-item-box\n[doc-list-depth]
+. ie (\n[dl]u > \n[doc-list-indent-stack\n[doc-list-depth]]u) \
. br
-. \}
. el \{\
-. chop doc-item-box\n[doc-list-depth]
-. \" Using \Z prevents stretching of the spaces in the tag
-. nop \Z'\*[doc-item-box\n[doc-list-depth]]'\c
-. nop \h'\n[doc-reg-dtl]u'\c
+. \" format the tag separately to prevent stretching of spaces
+. vpt 0
+. br
+. sp -1
+. vpt 1
+. nop \&\c
. nr doc-have-space 1
. \}
.
OpenPOWER on IntegriCloud