From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 0fbe1dc9 for ; Thu, 29 Jun 2017 11:31:45 -0500 (EST) Date: Thu, 29 Jun 2017 11:31:45 -0500 (EST) Message-Id: <9531630320165791765.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Skip whitespace at the beginning of eqn(7) nodes, in particular X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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 source+unsubscribe@mandoc.bsd.lv