From: Alan Knowles Date: Tue, 19 May 2015 05:44:56 +0000 (+0800) Subject: src/JsRender/NodeToVala.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=d6821a4c2a70bcdf8fe5c3eb5b89bd951cf63ec6;p=app.Builder.js src/JsRender/NodeToVala.vala --- diff --git a/src/JsRender/NodeToVala.vala b/src/JsRender/NodeToVala.vala index 35ec529b2..21e7d4eeb 100644 --- a/src/JsRender/NodeToVala.vala +++ b/src/JsRender/NodeToVala.vala @@ -801,22 +801,23 @@ public class JsRender.NodeToVala : Object { void iterChildren() { + this.node.line_end = this.curline; - if (this.depth > 0) { + if (this.depth > 0) { this.ret+= this.inpad + "}\n"; - } + } var iter = this.node.items.list_iterator(); var i = -1; while (iter.next()) { - this.ret += this.mungeChild(iter.get()); + this.ret += this.mungeChild(iter.get()); } - if (this.depth < 1) { - this.ret+= this.inpad + "}\n"; - } - + if (this.depth < 1) { + this.ret+= this.inpad + "}\n"; } + + } string padMultiline(string pad, string str) {