some spaces have not been skipped in the parser...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4336 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-06-05 07:32:59 +00:00
parent 12130ed9b1
commit e2e9f03515
2 changed files with 3 additions and 12 deletions

View File

@ -104,6 +104,7 @@ namespace {
MapleStream ms(os);
ms << ar;
string expr = os.str().c_str();
lyxerr << "ar: '" << ar << "'\n";
for (int i = 0; i < 100; ++i) { // at most 100 attempts
// try to fix missing '*' the hard way by using mint
@ -527,12 +528,6 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
}
bool needEqnArray(string const & extra)
{
return extra == "dsolve";
}
void InsetFormula::handleExtern(const string & arg)
{
// where are we?
@ -549,11 +544,7 @@ void InsetFormula::handleExtern(const string & arg)
bool selected = mathcursor->selection();
MathArray ar;
if (needEqnArray(extra)) {
mathcursor->last();
//mathcursor->readLine(ar);
mathcursor->breakLine();
} else if (selected) {
if (selected) {
mathcursor->selGet(ar);
//lyxerr << "use selection: " << ar << "\n";
} else {

View File

@ -795,7 +795,7 @@ void Parser::parse_into1(MathGridInset & grid, unsigned flags, bool numbered)
else if (t.cat() == catLetter)
add(*cell, t.character());
else if (t.cat() == catSpace) //&& code == LM_TC_TEXTRM
else if (t.cat() == catSpace && (flags & FLAG_TEXTMODE))
add(*cell, t.character());
else if (t.cat() == catParameter) {