From 472fa578e70b9d92e2295df552396dba3895226f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 30 May 2016 15:19:05 +0800 Subject: [PATCH] src/JsRender/NodeToJs.vala --- src/JsRender/NodeToJs.vala | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/JsRender/NodeToJs.vala b/src/JsRender/NodeToJs.vala index a13c80146..7825b40c6 100644 --- a/src/JsRender/NodeToJs.vala +++ b/src/JsRender/NodeToJs.vala @@ -428,16 +428,7 @@ public class JsRender.NodeToJs : Object { { string left; Regex func_regex ; - - if (this.node.props.has_key("$ xns")) { - // now sure why.... - this.out_props.set("'|xns'", "'" + this.node.props.get("$ xns") + "'" ); - - //this.els.add("'|xns' : '" + this.node.props.get("$ xns") + "'"); - - } - - + try { func_regex = new Regex("^\\s+|\\s+$"); } catch (RegexError e) { @@ -562,6 +553,17 @@ public class JsRender.NodeToJs : Object { //nstr = string.joinv("\n", lines); } this.out_props.set(left, nstr); + + if (left == "xns") { + + this.out_props.set("'|xns'", "'" + nstr + "'" ); + } + + + } + + + //print("==> " + str + "\n"); //this.els.add(left + " : "+ nstr); continue; -- 2.39.2