Kawai Wiki

Rev

Rev 202 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 202 Rev 222
Line 37... Line 37...
37
    @Override
37
    @Override
38
    public String process(PageContext context, Map<String, String> attrs, String html) {
38
    public String process(PageContext context, Map<String, String> attrs, String html) {
39
39
40
        StringBuilder sb = new StringBuilder(1024 * 10);
40
        StringBuilder sb = new StringBuilder(1024 * 10);
41
41
42
        boolean indent = true;
-
 
-
 
42
        boolean indent = false;
43
43
44
        if (attrs.containsKey("ul")) {
44
        if (attrs.containsKey("ul")) {
45
            indent = attrs.get("ul").equals("true");
45
            indent = attrs.get("ul").equals("true");
46
        }
46
        }
47
47
Line 49... Line 49...
49
        sb.append(buildOpenShTag(attrs));
49
        sb.append(buildOpenShTag(attrs));
50
        sb.append(escapeAngleBrackets(html));
50
        sb.append(escapeAngleBrackets(html));
51
        sb.append("</pre>");
51
        sb.append("</pre>");
52
        if (indent) sb.append("</ul>");
52
        if (indent) sb.append("</ul>");
53
       
53
       
54
        boolean noBR = false;
-
 
-
 
54
        boolean noBR = true;
55
        if (attrs.containsKey("noBR")) {
55
        if (attrs.containsKey("noBR")) {
56
                noBR = attrs.get("noBR").equals("true");
56
                noBR = attrs.get("noBR").equals("true");
57
        }
57
        }
58
        if (!noBR) sb.append("<br/>");
58
        if (!noBR) sb.append("<br/>");
59
        return sb.toString();
59
        return sb.toString();