line to html now workie
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m35s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m35s
This commit is contained in:
parent
45fb517385
commit
bedde3b0eb
@ -78,13 +78,17 @@ public final class ColorUtils {
|
||||
if (nextIsColor) { // Map the current color to its hex code
|
||||
String color = COLOR_MAP.getOrDefault(Character.toLowerCase(character), "");
|
||||
builder.append("<span style=\"color:").append(color);
|
||||
if (character == 'l') { // Bold
|
||||
if (character == 'l') { // Make the char bold
|
||||
builder.append(";font-weight:bold");
|
||||
}
|
||||
builder.append("\">");
|
||||
nextIsColor = false;
|
||||
continue;
|
||||
}
|
||||
if (character == ' ') { // Preserve space character
|
||||
builder.append(" ");
|
||||
continue;
|
||||
}
|
||||
builder.append(character); // Append the char...
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user