From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.scc.kit.edu (mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s9DM4EmH031013 for ; Mon, 13 Oct 2014 18:04:14 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1Xdniv-0005Qo-KI; Tue, 14 Oct 2014 00:04:13 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1Xdniv-0007j3-JN; Tue, 14 Oct 2014 00:04:13 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1Xdniv-0006n6-Hv; Tue, 14 Oct 2014 00:04:13 +0200 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1XdniC-0006L6-5X; Tue, 14 Oct 2014 00:03:28 +0200 Date: Tue, 14 Oct 2014 00:03:28 +0200 From: Ingo Schwarze To: "Anthony J. Bentley" Cc: discuss@mdocml.bsd.lv Subject: Re: Bl -tag output broken with -Tpdf Message-ID: <20141013220328.GS31838@iris.usta.de> References: <24317.1412895363@cathet.us> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24317.1412895363@cathet.us> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Anthony, Anthony J. Bentley wrote on Thu, Oct 09, 2014 at 04:56:03PM -0600: > In PDF output, item bodies in some tag lists have no text > and contain too much vertical space. Actually, that was *horizontal* space wrapping over many lines. > For example, see the ENVIRONMENT section in OpenBSD's ls(1). I just committed the patch below to fix this. Thanks for the report, Ingo Log Message: ----------- Properly scale string length measurements for PostScript and PDF output; this doesn't change anything for ASCII and UTF-8. Problem reported by bentley@. Modified Files: -------------- mdocml: mdoc_term.c Revision Data ------------- Index: mdoc_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v retrieving revision 1.282 retrieving revision 1.283 diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.282 -r1.283 --- mdoc_term.c +++ mdoc_term.c @@ -541,8 +541,10 @@ a2width(const struct termp *p, const cha struct roffsu su; assert(v); - if ( ! a2roffsu(v, &su, SCALE_MAX)) + if ( ! a2roffsu(v, &su, SCALE_MAX)) { SCALE_HS_INIT(&su, term_strlen(p, v)); + su.scale /= term_strlen(p, "0"); + } return(term_hspan(p, &su)); } @@ -560,8 +562,10 @@ a2offs(const struct termp *p, const char return(term_len(p, p->defindent + 1)); else if (0 == strcmp(v, "indent-two")) return(term_len(p, (p->defindent + 1) * 2)); - else if ( ! a2roffsu(v, &su, SCALE_MAX)) + else if ( ! a2roffsu(v, &su, SCALE_MAX)) { SCALE_HS_INIT(&su, term_strlen(p, v)); + su.scale /= term_strlen(p, "0"); + } return(term_hspan(p, &su)); } -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv