Commit 0dd2b967 authored by Alexander Semke's avatar Alexander Semke
Browse files

Remove line breaks in maxima's lists with many elements.

BUG: 363916
FIXED-IN: 16.12
parent 3ef0e7ba
......@@ -42,8 +42,6 @@ MaximaVariableModel::~MaximaVariableModel()
}
void MaximaVariableModel::checkForNewVariables()
{
qDebug()<<"checking for new variables";
......@@ -81,7 +79,6 @@ QList<Cantor::DefaultVariableModel::Variable> parse(MaximaExpression* expr)
return QList<Cantor::DefaultVariableModel::Variable>();
}
qDebug()<<"got "<<text;
const int nameIndex=text.indexOf(QLatin1Char(']'));
......@@ -114,11 +111,14 @@ QList<Cantor::DefaultVariableModel::Variable> parse(MaximaExpression* expr)
Cantor::DefaultVariableModel::Variable var;
var.name=variableNames.at(i);;
if(variableValues.size()>i)
{
var.value=variableValues.at(i).trimmed();
var.value=var.value.remove(QLatin1String("\n")); //lists with many elements have line breaks, remove them
}
else
var.value=QLatin1String("unknown");
variables<<var;
variables<<var;
}
return variables;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment