Do not append \n at beginning of constructed function

git-svn-id: svn://10.0.0.236/trunk@261357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hannes%helma.at
2010-10-06 07:29:26 +00:00
parent a2b63060b1
commit a2ab36ada0

View File

@@ -523,7 +523,7 @@ public class BaseFunction extends IdScriptableObject implements Function
}
sourceBuf.append(ScriptRuntime.toString(args[i]));
}
sourceBuf.append(") {\n");
sourceBuf.append(") {");
if (arglen != 0) {
// append function body
String funBody = ScriptRuntime.toString(args[arglen - 1]);