From cc365d55559406f3147b0afe149bc1c114a05857 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Fri, 25 Nov 2016 20:08:42 -0500 Subject: [PATCH] Fully solved WordWrap bug --- src/main/java/buttondevteam/lib/DebugPotato.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/lib/DebugPotato.java b/src/main/java/buttondevteam/lib/DebugPotato.java index 7786490..5c6139b 100644 --- a/src/main/java/buttondevteam/lib/DebugPotato.java +++ b/src/main/java/buttondevteam/lib/DebugPotato.java @@ -42,7 +42,11 @@ public class DebugPotato { * @return This potato */ public DebugPotato setMessage(List message) { - this.message = message; + this.message = WordWrap(message.toString()); + return this; + } + public DebugPotato setMessage(List message, boolean isWordWrapped) { + this.message = (isWordWrapped) ? WordWrap(message.toString()): message; return this; }