diff --git a/nodes/core/core/80-function.js b/nodes/core/core/80-function.js index 2766dc49b..c02af92fa 100644 --- a/nodes/core/core/80-function.js +++ b/nodes/core/core/80-function.js @@ -25,7 +25,7 @@ function FunctionNode(n) { RED.nodes.createNode(this,n); this.name = n.name; this.func = n.func; - var functionText = "var results = (function(msg){"+this.func+"})(msg);"; + var functionText = "var results = (function(msg){"+this.func+"\n})(msg);"; this.topic = n.topic; this.context = {global:RED.settings.functionGlobalContext || {}}; try {