src/JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 05:37:12 +0000 (13:37 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 05:37:12 +0000 (13:37 +0800)
src/JsRender/NodeToJs.vala

index ec53895..7ecb81d 100644 (file)
@@ -86,7 +86,7 @@ public class JsRender.NodeToJs : Object {
                if (this.els.size < 1) {
                        return "";
                }
-               
+
                this.mungeOut();
                
                // oprops...    
@@ -165,7 +165,7 @@ public class JsRender.NodeToJs : Object {
 
        public string mungeOut()
        {
-               
+               this.node.line_start = this.cur_line;
                var spad = this.pad.substring(0, this.pad.length-indent);
                
                if (this.node.props.has_key("* xinclude")) {
@@ -301,18 +301,18 @@ public class JsRender.NodeToJs : Object {
        public void addLine(string str= "")
        {
                this.cur_line ++;
-               //this.ret += str+ "\n";
-               this.ret +=  "/*%d*/ ".printf(this.cur_line -1) + str + "\n";
+               this.ret += str+ "\n";
+               //this.ret +=  "/*%d*/ ".printf(this.cur_line -1) + str + "\n";
                
                
        }
        
        public void addMultiLine(string str= "")
        {
-                var l = cur_line;
+               //var l = cur_line;
                this.cur_line += str.split("\n").length;
-               this.ret +=  "/*%d*/ ".printf(l) + str + "\n";
-               //this.ret +=   str + "\n";
+               //this.ret +=  "/*%d*/ ".printf(l) + str + "\n";
+               this.ret +=   str + "\n";
        }
 
        string gLibStringListJoin( string sep, Gee.ArrayList<string> ar)