maybe bold for html?
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m34s
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:
parent
2be48c7c30
commit
65aa5b102b
@ -49,7 +49,7 @@ public final class ColorUtils {
|
||||
/**
|
||||
* Convert the given input
|
||||
* into HTML.
|
||||
*
|
||||
*
|
||||
* @param input the input to convert
|
||||
* @return the HTML converted input
|
||||
*/
|
||||
@ -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