{
std::wstring wstrName = pVar->getSymbol().getName();
std::wostringstream ostr;
- ostr << L" " << wstrName << L" = " << std::endl << std::endl;
+ ostr << L" " << wstrName << L" = " << std::endl;
+ if (ConfigVariable::isPrintCompact() == false)
+ {
+ ostr << std::endl;
+ }
scilabWriteW(ostr.str().c_str());
std::wostringstream ostrName;
ostrName << wstrName;
if ((*it)->isVerbose() && ConfigVariable::isPrintOutput())
{
//TODO manage multiple returns
- scilabWriteW(L" ans =\n\n");
+ scilabWriteW(L" ans =\n");
+ if (ConfigVariable::isPrintCompact() == false)
+ {
+ scilabWriteW(L"\n");
+ }
std::wostringstream ostrName;
ostrName << L"ans";
VariableToString(pITAns, ostrName.str().c_str());
ostr << L"(" << pI->getRef() << L")";
#endif
ostr << std::endl;
- ostr << std::endl;
+ if (ConfigVariable::isPrintCompact() == false)
+ {
+ ostr << std::endl;
+ }
scilabWriteW(ostr.str().c_str());
std::wostringstream ostrName;
ostrName << e.getSymbol().getName();
void addColumnString(std::wostringstream& ostr, int _iFrom, int _iTo)
{
+ if (ConfigVariable::isPrintCompact() == false)
+ {
+ ostr << std::endl;
+ }
if (_iFrom == _iTo)
{
- ostr << std::endl << L" column " << _iFrom << std::endl << std::endl;
+ ostr << L" column " << _iFrom << std::endl;
}
else
{
- ostr << std::endl << L" column " << _iFrom << L" to " << _iTo << std::endl << std::endl;
+ ostr << L" column " << _iFrom << L" to " << _iTo << std::endl;
+ }
+ if (ConfigVariable::isPrintCompact() == false)
+ {
+ ostr << std::endl;
}
}
bFinish = linesmore() == 1;
}
- if (ConfigVariable::isPrintCompact() == false && ConfigVariable::isPrintInput() == false)
- {
- ostr << std::endl;
- }
-
scilabForcedWriteW(ostr.str().c_str());
ostr.str(L"");
}