Skip to content

Commit

Permalink
fix formatting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Dec 7, 2023
1 parent 959e38c commit 747b20f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions zk/src/main/java/org/zkoss/zk/ui/metainfo/NativeInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,26 @@ public void addPrologChild(NodeInfo child) {
final char cc = value.charAt(j);
final String rep;
switch (cc) {
case '<': rep = "\\u003c"; break;
case '>': rep = "\\u003e"; break;
case '<':
rep = "\\u003c";
break;
case '>':
rep = "\\u003e";
break;
default:
if (sb != null) sb.append(cc);
if (sb != null)
sb.append(cc);
continue;
}

if (sb == null) {
sb = new StringBuffer(len + 8);
if (j > 0) sb.append(value.substring(0, j));
if (j > 0)
sb.append(value.substring(0, j));
}
sb.append(rep);
}
child = new TextInfo(sb != null ? sb.toString(): value);
child = new TextInfo(sb != null ? sb.toString() : value);
}
}
_prokids.add(child);
Expand Down

0 comments on commit 747b20f

Please sign in to comment.