From 6c4ee55b954236a7d85265f8c14a9306c51bb2c0 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sun, 14 Apr 2024 17:01:27 -0400 Subject: [PATCH] Preserve whitespace in HTML --- API/src/main/java/me/braydon/mc/common/ColorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/src/main/java/me/braydon/mc/common/ColorUtils.java b/API/src/main/java/me/braydon/mc/common/ColorUtils.java index 2979914..8414db1 100644 --- a/API/src/main/java/me/braydon/mc/common/ColorUtils.java +++ b/API/src/main/java/me/braydon/mc/common/ColorUtils.java @@ -97,7 +97,7 @@ public final class ColorUtils { nextIsColor = false; continue; } - builder.append(character); // Append the char... + builder.append(character == ' ' ? " " : character); // Append the char... } return builder.toString(); }