Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudroques committed Jan 22, 2022
1 parent b995dcd commit c94711c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static String stringToHTMLString(String string) {
final StringBuffer sb = new StringBuffer(string.length());
// true if last char was blank
final int length = string.length();
for (int offset = 0; offset < length; ) {
for (int offset = 0; offset < length;) {
final int c = string.codePointAt(offset);
if (c == ' ') {
sb.append(' ');
Expand All @@ -102,7 +102,7 @@ public static String stringToHTMLString(String string) {
int ci = 0xffffff & c;
if (ci < 160) {
// nothing special only 7 Bit
sb.append((char)c);
sb.append((char) c);
} else {
// Not 7 Bit use the unicode system
sb.append("&#");
Expand Down

0 comments on commit c94711c

Please sign in to comment.