From: André Pönitz Date: Thu, 7 Mar 2002 17:34:51 +0000 (+0000) Subject: Fix parser glitch as reported by J.L.M.Assirati X-Git-Tag: 1.6.10~19702 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=eb399226120215e3576596657ea08ed0868e4776;p=features.git Fix parser glitch as reported by J.L.M.Assirati git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3696 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index b59643b981..274e29ae38 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -914,16 +914,19 @@ void Parser::parse_into1(MathArray & array, unsigned flags, MathTextCodes code) #endif if (flags & FLAG_ITEM) { + if (t.cat() == catSpace) + continue; + flags &= ~FLAG_ITEM; if (t.cat() == catBegin) { // skip the brace and collect everything to the next matching // closing brace flags |= FLAG_BRACE_LAST; continue; - } else { - // handle only this single token, leave the loop if done - flags |= FLAG_LEAVE; } + + // handle only this single token, leave the loop if done + flags |= FLAG_LEAVE; } if (flags & FLAG_BLOCK) {