src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 06:59:10 +0000 (14:59 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 06:59:10 +0000 (14:59 +0800)
src/JsRender/NodeToVala.vala

index f632a1d..8c1cf25 100644 (file)
@@ -327,7 +327,7 @@ public class JsRender.NodeToVala : Object {
                var cargs_str = "";
                // ctor..
                this.ret += "\n" + this.pad + "// ctor \n";
-               if (this.node.has("* args")) {
+                       if (this.node.has("* args")) {
                        // not sure what this is supposed to be ding..
                        
                        cargs_str = ", " + this.node.get("* args");
@@ -340,13 +340,13 @@ public class JsRender.NodeToVala : Object {
                if (this.depth < 1) {
                        this.ret += this.pad + "public " + this.xcls + "(" + 
                                    cargs_str +")\n" + this.pad + "{\n";
-               } else {
-                
-                    //code 
-                
-                       this.ret+= this.pad + "public " + this.xcls + "(" + 
-                               this.top.xcls + " _owner " + cargs_str + ")\n" + this.pad + "{\n";
-               }
+                       } else {
+                                       
+                                               //code 
+                                       
+                               this.ret+= this.pad + "public " + this.xcls + "(" + 
+                                       this.top.xcls + " _owner " + cargs_str + ")\n" + this.pad + "{\n";
+                       }
             
 
        }
@@ -621,7 +621,7 @@ public class JsRender.NodeToVala : Object {
                }
                this.ret+= "\n" + ipad + "// init method \n";
                
-               this.ret+= "\n" + ipad + this.padMultiline(ipad, this.node.get("init"));
+               this.ret+= "\n" + ipad + this.padMultiline(ipad, this.node.get("init")) + "\n";
 
          }
         void addListeners()