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 47b5824b for ; Thu, 29 Jun 2017 11:37:29 -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 1dQcRb-0000dE-LI; Thu, 29 Jun 2017 18:37:28 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1dQcRa-00047A-Td; Thu, 29 Jun 2017 18:37:26 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1dQcRa-0006aP-PW; Thu, 29 Jun 2017 18:37:26 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 243031a2; Thu, 29 Jun 2017 18:37:26 +0200 (CEST) Date: Thu, 29 Jun 2017 18:37:26 +0200 From: Ingo Schwarze To: "Anthony J. Bentley" Cc: tech@mandoc.bsd.lv Subject: Re: eqn(7): leading ~ doesn't become space Message-ID: <20170629163726.GB5328@athene.usta.de> References: <56834.1498718428@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: <56834.1498718428@cathet.us> User-Agent: Mutt/1.6.2 (2016-07-01) Hi Anthony, Anthony J. Bentley wrote on Thu, Jun 29, 2017 at 12:40:28AM -0600: > .EQ > a~< > .EN > .EQ > ~< > .EN > In groff: > > a< < > > In mandoc: > > a < ~< > > ~ should not appear in the output. True, fixed with the following commit. Thanks for reporting, Ingo Log Message: ----------- Skip whitespace at the beginning of eqn(7) nodes, in particular ~ and ^ that misrendered; found by bentley@ in glCopyTexSubImage1D(3); also affected glAccum(3), glClipPlane(3), glDrawPixels(3), glEvalMesh(3), and others. Modified Files: -------------- mandoc: eqn.c Revision Data ------------- Index: eqn.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/eqn.c,v retrieving revision 1.71 retrieving revision 1.72 diff -Leqn.c -Leqn.c -u -p -r1.71 -r1.72 --- eqn.c +++ eqn.c @@ -683,7 +683,7 @@ eqn_parse(struct eqn_node *ep, struct eq if (ep->data == NULL) return ROFF_IGN; - ep->start = ep->end = ep->data; + ep->start = ep->end = ep->data + strspn(ep->data, " ^~"); next_tok: tok = eqn_next(ep, MODE_TOK); -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv