fix html motd
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m57s

This commit is contained in:
Lee
2024-04-14 21:39:55 +01:00
parent 5877b100bc
commit 1d597d5d92
2 changed files with 10 additions and 10 deletions

View File

@ -60,6 +60,7 @@ public final class ColorUtils {
@NonNull
public static String toHTML(@NonNull String input) {
StringBuilder builder = new StringBuilder();
builder.append("<span>"); // Open the span tag
boolean nextIsColor = false; // Is the next char a color code?
for (char character : input.toCharArray()) {
@ -76,6 +77,7 @@ public final class ColorUtils {
}
builder.append(character); // Append the char...
}
builder.append("</span>"); // Close the span tag
return builder.toString();
}
}