Don't add spacing for empty strings in Engine.output(), just like in Engine.debug().

git-svn-id: http://yate.null.ro/svn/yate/trunk@6479 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2021-04-16 10:24:17 +00:00
parent 19ec4ab0eb
commit b9cb5d4f0b
1 changed files with 6 additions and 4 deletions

View File

@ -1323,10 +1323,12 @@ bool JsEngine::runNative(ObjList& stack, const ExpOperation& oper, GenObject* co
String str;
for (int i = (int)oper.number(); i; i--) {
ExpOperation* op = popValue(stack,context);
if (str)
str = *op + " " + str;
else
str = *op;
if (*op) {
if (str)
str = *op + " " + str;
else
str = *op;
}
TelEngine::destruct(op);
}
if (str) {