public void addLine(string str)
{
this.cur_line++;
- this.ret += str;
+ this.ret += str + "\n";
}
// 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("");