diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-29 16:31:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-29 16:31:15 +0000 |
commit | 17984e1e0b09558f8bfb0a8ee9e49bc97e4a554e (patch) | |
tree | d6cc563d66764e1394d0e1a445fbe2728392661c | |
parent | 16ab65c3e3a699cbb2591d1d913f77b9ee7e25ef (diff) | |
download | mandoc-17984e1e0b09558f8bfb0a8ee9e49bc97e4a554e.tar.gz |
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.
-rw-r--r-- | eqn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |