forked from MinecraftUtilities/Backend
maybe bold for html?
This commit is contained in:
parent
2be48c7c30
commit
65aa5b102b
@ -83,15 +83,10 @@ public final class ColorUtils {
|
||||
continue;
|
||||
}
|
||||
if (character == 'l') { // Start bold
|
||||
isBold = true;
|
||||
builder.append("<b>");
|
||||
builder.append("<span style=\"font-weight: bold;\">");
|
||||
continue;
|
||||
}
|
||||
if (character == 'r') { // Reset formatting
|
||||
if (isBold) {
|
||||
builder.append("</b>");
|
||||
isBold = false;
|
||||
}
|
||||
builder.append("</span>");
|
||||
continue;
|
||||
}
|
||||
@ -107,5 +102,4 @@ public final class ColorUtils {
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user