From 3aad1243de81f4fa87d3d67a5c4c6f0385bd0ac7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 29 Jun 2017 16:31:15 +0000 Subject: 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. --- eqn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eqn.c') diff --git a/eqn.c b/eqn.c index 9c01551c..59972171 100644 --- a/eqn.c +++ b/eqn.c @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.71 2017/06/26 20:09:04 schwarze Exp $ */ +/* $Id: eqn.c,v 1.72 2017/06/29 16:31:15 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2017 Ingo Schwarze @@ -683,7 +683,7 @@ eqn_parse(struct eqn_node *ep, struct eqn_box *parent) 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); -- cgit v1.2.3-56-ge451