From 10187ee6d9d74e05bf11352a6c77c4ff50016916 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 29 Aug 2001 15:19:50 +0000 Subject: [PATCH] read & and \\ nested in {} again git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2616 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_parser.C | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 5922f15361..3ca1a4a867 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -696,7 +696,7 @@ void Parser::parse_into(MathArray & array, unsigned flags, MathTextCodes code) else if (t.cat() == catAlign) { lyxerr << "found tab unexpectedly, array: '" << array << "'\n"; - return; + array.push_back(new MathCharInset('&', LM_TC_SPECIAL)); } else if (t.cat() == catSuper) @@ -728,10 +728,11 @@ void Parser::parse_into(MathArray & array, unsigned flags, MathTextCodes code) else if (t.cs() == "\\") { curr_skip_ = getArg('[', ']'); - if (!(flags & FLAG_NEWLINE)) - lyxerr[Debug::MATHED] + if (flags & FLAG_NEWLINE) + return; + lyxerr[Debug::MATHED] << "found newline unexpectedly, array: '" << array << "'\n"; - return; + array.push_back(createMathInset("\\")); } else if (t.cs() == "limits") -- 2.39.2