From eb399226120215e3576596657ea08ed0868e4776 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 7 Mar 2002 17:34:51 +0000 Subject: [PATCH] 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 --- src/mathed/math_parser.C | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) { -- 2.39.2