git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6332 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-03-04 09:06:13 +00:00
parent cd3d0bc0b2
commit 4b67d5603f

View File

@ -206,6 +206,8 @@ ostream & operator<<(ostream & os, Token const & t)
{ {
if (t.cs().size()) if (t.cs().size())
os << '\\' << t.cs(); os << '\\' << t.cs();
else if (t.cat() == catLetter)
os << t.character();
else else
os << '[' << t.character() << ',' << t.cat() << ']'; os << '[' << t.character() << ',' << t.cat() << ']';
return os; return os;
@ -1078,10 +1080,11 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
} }
else { else {
//lyxerr << "unknow math inset begin '" << name << "'\n"; dump();
lyxerr << "found unknown math environment '" << name << "'\n";
// create generic environment inset // create generic environment inset
cell->push_back(MathAtom(new MathEnvInset(name))); cell->push_back(MathAtom(new MathEnvInset(name)));
parse2(cell->back(), FLAG_END, mode, false); parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
} }
} }