From 1768099f0713903b81575f712ccc3b52c63d4840 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 30 May 2016 16:17:33 +0800 Subject: [PATCH] src/JsRender/NodeToJs.vala --- src/JsRender/NodeToJs.vala | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/JsRender/NodeToJs.vala b/src/JsRender/NodeToJs.vala index 6b8676fad..52e8319e7 100644 --- a/src/JsRender/NodeToJs.vala +++ b/src/JsRender/NodeToJs.vala @@ -213,7 +213,7 @@ public class JsRender.NodeToJs : Object { //------- at this point it is the end of the code relating directly to the object.. - this.node.line_end = this.cur_line; + @@ -225,10 +225,10 @@ public class JsRender.NodeToJs : Object { var addstr = this.mungeChildNew(this.pad + indent_str, niter.get_value()); this.node.setLine(this.cur_line, "p",niter.get_key()); this.addLine(this.pad + niter.get_key() + " : " + addstr, ','); - if (iter.get_key() == "xns") { - this.addLine(this.pad + "'|xns' : '" + addstr + "'", ','); + if (niter.get_key() == "xns") { + this.addLine(this.pad + "'|xns' : '" + addstr + "'", ','); - } + } } // prop arrays... @@ -271,6 +271,9 @@ public class JsRender.NodeToJs : Object { } this.node.sortLines(); + + this.node.line_end = this.cur_line; + return this.ret; } -- 2.39.2