From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 707957d1; for ; Sun, 19 Apr 2015 15:58:01 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (envelope-from ) id 1YjwHu-0007dM-Fh; Sun, 19 Apr 2015 22:57:59 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1YjwHu-0000Qc-AF; Sun, 19 Apr 2015 22:57:58 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.80) (envelope-from ) id 1YjwHu-0003Jp-5v; Sun, 19 Apr 2015 22:57:58 +0200 Received: from localhost (1031@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id fa6f90ef; Sun, 19 Apr 2015 22:57:58 +0200 (CEST) Date: Sun, 19 Apr 2015 22:57:58 +0200 From: Ingo Schwarze To: Christian Neukirchen Cc: tech@mdocml.bsd.lv Subject: Re: Stray T} in tbl mode Message-ID: <20150419205758.GQ32377@athene.usta.de> References: <874moqr97b.fsf@gmail.com> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874moqr97b.fsf@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Hi Christian, Christian Neukirchen wrote on Wed, Apr 08, 2015 at 04:22:32PM +0200: > The following table, simplified version of Linux socket(2) misrenders: > > > .TH SOCKET 2 2015-03-29 "Linux" "Linux Programmer's Manual" > .SH SYNOPSIS > .TS > tab(:); > l l l. > Name:Purpose:Man page > T{ > .BR AF_UNIX ", " AF_LOCAL > T}:T{ > Local communication > T}:T{ > .BR unix (7) > T} > T{ > .B AF_INET > T}:IPv4 Internet protocols:T{ > .BR ip (7) > T} > .TE > > > The final T} appears in the output, and ip(7) ends up as first entry > of line 3, not third entry of line 2, as it should. > > (Moving "IPv4 Internet protocols" into its own line and wrapping it in > T{...T} helps...) > > Renders OK in tbl/groff and plan9port tbl/nroff. I just fixed this in OpenBSD and in mdocml.bsd.lv, too. Thanks again for reporting, Ingo Log Message: ----------- More than one data field may follow T} on the same input line. Issue found by Christian Neukirchen in the socket(2) manual on Linux. Also fixes major rendering bugs (including partial loss of content) in XkbChangeControls(3), XkbFreeClientMap(3), XkbGetMap(3), XkbKeyNumGroups(3), and XkbSetMap(3). Modified Files: -------------- mdocml: tbl_data.c Revision Data ------------- Index: tbl_data.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/tbl_data.c,v retrieving revision 1.39 retrieving revision 1.40 diff -Ltbl_data.c -Ltbl_data.c -u -p -r1.39 -r1.40 --- tbl_data.c +++ tbl_data.c @@ -132,7 +132,8 @@ tbl_cdata(struct tbl_node *tbl, int ln, if (p[pos] == tbl->opts.tab) { tbl->part = TBL_PART_DATA; pos++; - getdata(tbl, tbl->last_span, ln, p, &pos); + while (p[pos] != '\0') + getdata(tbl, tbl->last_span, ln, p, &pos); return(1); } else if (p[pos] == '\0') { tbl->part = TBL_PART_DATA; -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv