From 970053859422fc441c1e0e87da90ac2b328848f0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 30 May 2016 15:34:37 +0800 Subject: [PATCH] src/JsRender/NodeToJs.vala --- src/JsRender/NodeToJs.vala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/JsRender/NodeToJs.vala b/src/JsRender/NodeToJs.vala index 64af1b8e6..c3184bfbc 100644 --- a/src/JsRender/NodeToJs.vala +++ b/src/JsRender/NodeToJs.vala @@ -186,6 +186,8 @@ public class JsRender.NodeToJs : Object { var v = this.out_props.get(k); this.node.setLine(this.cur_line, "p",k); //listener this.addLine(this.pad + k + " : " + v + suffix, ','); + + } // listeners.. @@ -289,7 +291,9 @@ public class JsRender.NodeToJs : Object { */ public void addLine(string str, char line_end) { - this.ret += (this.last_line_end == 0 ? "" : this.last_line_end.to_string()) + "\n"; + if (this.last_line_end != '!') { + this.ret += (this.last_line_end == 0 ? "" : this.last_line_end.to_string()) + "\n"; + } this.last_line_end = line_end; this.cur_line += str.split("\n").length; this.ret += str; @@ -555,10 +559,7 @@ public class JsRender.NodeToJs : Object { } this.out_props.set(left, nstr); - if (left == "xns") { - - this.out_props.set("'|xns'", "'" + nstr + "'" ); - } + -- 2.39.2