maybe bold for html?

This commit is contained in:
Lee 2024-04-16 20:36:24 +01:00
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();
}
}