forked from MinecraftUtilities/Backend
maybe bold for html?
This commit is contained in:
parent
65aa5b102b
commit
5c77b59b90
@ -80,8 +80,7 @@ public final class ColorUtils {
|
|||||||
String color = COLOR_MAP.getOrDefault(Character.toLowerCase(character), "");
|
String color = COLOR_MAP.getOrDefault(Character.toLowerCase(character), "");
|
||||||
builder.append("<span style=\"color:").append(color).append("\">");
|
builder.append("<span style=\"color:").append(color).append("\">");
|
||||||
nextIsColor = false;
|
nextIsColor = false;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (character == 'l') { // Start bold
|
if (character == 'l') { // Start bold
|
||||||
builder.append("<span style=\"font-weight: bold;\">");
|
builder.append("<span style=\"font-weight: bold;\">");
|
||||||
continue;
|
continue;
|
||||||
@ -90,6 +89,8 @@ public final class ColorUtils {
|
|||||||
builder.append("</span>");
|
builder.append("</span>");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (character == ' ') { // Preserve space character
|
if (character == ' ') { // Preserve space character
|
||||||
builder.append(" ");
|
builder.append(" ");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user