From ca7bb1a3f57a82d8897086ab1b1ee51f7edb02db Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 18 Jul 2014 18:04:21 -0700 Subject: [PATCH] Remove word wrapping in ColorCodeBuilder.build(). --- .../com/sk89q/worldedit/util/formatting/ColorCodeBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/util/formatting/ColorCodeBuilder.java b/src/main/java/com/sk89q/worldedit/util/formatting/ColorCodeBuilder.java index c0ea43961..a0b9a534c 100644 --- a/src/main/java/com/sk89q/worldedit/util/formatting/ColorCodeBuilder.java +++ b/src/main/java/com/sk89q/worldedit/util/formatting/ColorCodeBuilder.java @@ -39,7 +39,7 @@ public class ColorCodeBuilder { public String[] build(StyledFragment message) { StringBuilder builder = new StringBuilder(); buildFragment(builder, message, message.getStyle(), new StyleSet()); - return wordWrap(builder.toString(), GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH); + return builder.toString().split("\r?\n"); } /**