maybe bold for html?
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m34s

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();
}
}