package cn.cerc.ui.core;

import cn.cerc.core.Utils;

public class HtmlWriter {
    private StringBuilder builder = new StringBuilder();

    public void print(String value) {
        builder.append(value);
    }

    public void print(String format, Object... args) {
        builder.append(String.format(format, args));
    }

    public void println(String value) {
        builder.append(value);
        builder.append(Utils.vbCrLf);
    }

    public void println(String format, Object... args) {
        builder.append(String.format(format, args));
        builder.append(Utils.vbCrLf);
    }

    @Override
    public String toString() {
        return builder.toString();
    }
}

@@ -45,16 +45,53 @@
 e.Utils;
+%0Aimport cn.cerc.db.core.ServerConfig;
 %0A%0Apublic
@@ -426,24 +426,74 @@
 end(value);%0A
+        if (ServerConfig.isServerDevelop()) %7B%0A    
         buil
@@ -510,32 +510,42 @@
 (Utils.vbCrLf);%0A
+        %7D%0A
     %7D%0A%0A    publi
@@ -641,24 +641,74 @@
 at, args));%0A
+        if (ServerConfig.isServerDevelop()) %7B%0A    
         buil
@@ -729,24 +729,34 @@
 ls.vbCrLf);%0A
+        %7D%0A
     %7D%0A%0A    @

Update HtmlWriter.java