From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [129.13.231.81]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 55783084 for ; Fri, 14 Jul 2017 13:24:16 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1dW5GA-0003I9-VT; Fri, 14 Jul 2017 20:24:16 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1dW5G9-00041n-Qp; Fri, 14 Jul 2017 20:24:13 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1dW5G9-0005vS-KH; Fri, 14 Jul 2017 20:24:13 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id e61c59d5; Fri, 14 Jul 2017 20:24:13 +0200 (CEST) Date: Fri, 14 Jul 2017 20:24:13 +0200 From: Ingo Schwarze To: "Anthony J. Bentley" Cc: tech@mdocml.bsd.lv Subject: Re: eqn(7): Brackets and commas as operators Message-ID: <20170714182413.GH32226@athene.usta.de> References: <5849.1499994018@cathet.us> <20170714115125.GC54546@athene.usta.de> <15698.1500045283@cathet.us> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15698.1500045283@cathet.us> User-Agent: Mutt/1.6.2 (2016-07-01) Hi Anthony, Anthony J. Bentley wrote on Fri, Jul 14, 2017 at 09:14:43AM -0600: > Ingo Schwarze writes: >> Anthony J. Bentley wrote on Thu, Jul 13, 2017 at 07:00:18PM -0600: >>> .EQ >>> v[0], v[1] >>> .EN >>> >>> In HTML output, "]," gets wrapped into a single , which renders >>> incorrectly. >> Incorrectly in which way? Do you menan that there should be spacing >> after the comma? > Incorrectly in that the v[0]'s left bracket and right bracket differ > in size in the browser. > > v[0], > v[1] I don't see a size difference in Firefox 54.0, but maybe there is a slight vertical offset. >> What would be a correct rendering? > This is what it should look like: > > v[0], > v[1] I see, that makes sense anyway, thanks for explaining. Fixed with the commit below. Yours, Ingo Log Message: ----------- always give commas their own element, suggested by bentley@, improves e.g. glMultMatrix(3) Modified Files: -------------- mandoc: eqn.c Revision Data ------------- Index: eqn.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/eqn.c,v retrieving revision 1.76 retrieving revision 1.77 diff -Leqn.c -Leqn.c -u -p -r1.76 -r1.77 --- eqn.c +++ eqn.c @@ -1041,7 +1041,7 @@ next_tok: /* No boundary after last character. */ if (*cpn == '\0') break; - if (ccln == ccl) + if (ccln == ccl && *cp != ',' && *cpn != ',') continue; /* Boundary found, split the text. */ if (parent->args == parent->expectargs) { -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv