From 77ede09d11ca2642cf2a9baac4cfadd9b3eb7754 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 19 May 2015 12:45:25 +0800 Subject: [PATCH] src/JsRender/NodeToVala.vala --- src/JsRender/NodeToVala.vala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/JsRender/NodeToVala.vala b/src/JsRender/NodeToVala.vala index ce34285b1..757e09c50 100644 --- a/src/JsRender/NodeToVala.vala +++ b/src/JsRender/NodeToVala.vala @@ -180,7 +180,7 @@ public class JsRender.NodeToVala : Object { public void addLine(string str) { this.cur_line++; - this.ret += str; + this.ret += str + "\n"; } @@ -204,11 +204,13 @@ public class JsRender.NodeToVala : Object { // class header.. // class xxx { WrappedGtk el; } - this.ret += inpad + "public class " + this.xcls + " : Object \n" + this.inpad + "{\n"; - this.ret += this.pad + "public " + this.cls + " el;\n"; + this.addLine(inpad + "public class " + this.xcls + " : Object \n" + this.inpad + "{"); + + this.addLine(this.pad + "public " + this.cls + " el;"); - this.ret += this.pad + "private " + this.top.xcls + " _this;\n\n"; + this.addLine(this.pad + "private " + this.top.xcls + " _this;)"; + this.addLine(""); -- 2.39.2