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

index d04a8b6..879db43 100644 (file)
@@ -331,9 +331,10 @@ public class JsRender.NodeToJs : Object {
                return x.munge();
        }
        
-       public string mungeChildNew(string pad ,  Node cnode)
+       public string mungeChildNew(string pad ,  Node cnode, int offset = 0)
        {
                var x = new  NodeToJs(cnode, this.doubleStringProps, pad, this);
+               x.cur_line -= offset;
                x.munge();
                return x.ret;
        }