this.node.setLine(this.cur_line, ";",k);
this.addLine( v,',');
}
- suffix = total_nodes > 0 ? "," : "";
- this.addLine(this.pad + "}" + suffix);
+
+ this.closeLine();
+ this.addLine(this.pad + "}" ,',');
}
*/
public void addLine(string str, char line_end)
{
- this.ret += (this.line_end == 0 ? "" : this.last_line_end) + "\n";
+ this.ret += (this.last_line_end == 0 ? "" : this.last_line_end.to_string()) + "\n";
+ this.last_line_end = line_end;
this.cur_line += str.split("\n").length;
this.ret += str;
}
+ public void closeLine()
+ {
+ this.last_line_end = 0;
+ }
/* public void addMultiLine(str= "")
{