Fully solved WordWrap bug

This commit is contained in:
alisolarflare 2016-11-25 20:08:42 -05:00
parent 88cab094ab
commit cc365d5555

View file

@ -42,7 +42,11 @@ public class DebugPotato {
* @return This potato * @return This potato
*/ */
public DebugPotato setMessage(List<String> message) { public DebugPotato setMessage(List<String> message) {
this.message = message; this.message = WordWrap(message.toString());
return this;
}
public DebugPotato setMessage(List<String> message, boolean isWordWrapped) {
this.message = (isWordWrapped) ? WordWrap(message.toString()): message;
return this; return this;
} }