From 65aa5b102b8eda93bd8af6d3ebaa050189019853 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 16 Apr 2024 20:36:24 +0100 Subject: [PATCH] maybe bold for html? --- .../java/xyz/mcutils/backend/common/ColorUtils.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/xyz/mcutils/backend/common/ColorUtils.java b/src/main/java/xyz/mcutils/backend/common/ColorUtils.java index bae4e05..f800ba5 100644 --- a/src/main/java/xyz/mcutils/backend/common/ColorUtils.java +++ b/src/main/java/xyz/mcutils/backend/common/ColorUtils.java @@ -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(""); + builder.append(""); continue; } if (character == 'r') { // Reset formatting - if (isBold) { - builder.append(""); - isBold = false; - } builder.append(""); continue; } @@ -107,5 +102,4 @@ public final class ColorUtils { return builder.toString(); } - } \ No newline at end of file