src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:32:36 +0000 (14:32 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:32:36 +0000 (14:32 +0800)
src/JsRender/NodeToVala.vala

index adb4527..4d718ee 100644 (file)
@@ -192,9 +192,9 @@ public class JsRender.NodeToVala : Object {
        }
        public void addMultiLine(string str= "")
        {
-               //this.cur_line++;
+               var l = this.cur_line;
                this.cur_line += str.split("\n").length;
-               this.ret +=  "/*%d*/ ".printf(this.cur_line-1) + str + "\n";
+               this.ret +=  "/*%d*/ ".printf(l) + str + "\n";
        }