From: André Pönitz Date: Wed, 29 Aug 2001 15:19:50 +0000 (+0000) Subject: read & and \\ nested in {} again X-Git-Tag: 1.6.10~20729 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=10187ee6d9d74e05bf11352a6c77c4ff50016916;p=features.git read & and \\ nested in {} again git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2616 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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")