From 4b67d5603f1d19e08102a983c3bb8e67354e1bc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 4 Mar 2003 09:06:13 +0000 Subject: [PATCH] fix fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6332 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_parser.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index ea289cc82c..ecaea5d0c5 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -206,6 +206,8 @@ ostream & operator<<(ostream & os, Token const & t) { if (t.cs().size()) os << '\\' << t.cs(); + else if (t.cat() == catLetter) + os << t.character(); else os << '[' << t.character() << ',' << t.cat() << ']'; return os; @@ -1078,10 +1080,11 @@ void Parser::parse1(MathGridInset & grid, unsigned flags, } else { - //lyxerr << "unknow math inset begin '" << name << "'\n"; + dump(); + lyxerr << "found unknown math environment '" << name << "'\n"; // create generic environment inset cell->push_back(MathAtom(new MathEnvInset(name))); - parse2(cell->back(), FLAG_END, mode, false); + parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode); } } -- 2.39.5