From 2678a3dcce2ebabf1307df3a71680be040849f71 Mon Sep 17 00:00:00 2001
From: Chris Kearney <chris@kearneymail.com>
Date: Sun, 14 Aug 2016 13:57:54 -0700
Subject: [PATCH] removing whitespace at the end of the lines fixed my compare
 stuff

---
 src/main/java/com/comandante/creeper/command/Command.java | 1 -
 src/main/java/com/comandante/creeper/player/Player.java   | 5 ++++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/comandante/creeper/command/Command.java b/src/main/java/com/comandante/creeper/command/Command.java
index b369a20e..04898438 100644
--- a/src/main/java/com/comandante/creeper/command/Command.java
+++ b/src/main/java/com/comandante/creeper/command/Command.java
@@ -182,5 +182,4 @@ public abstract class Command extends SimpleChannelUpstreamHandler {
         Class<Command> clazz = (Class<Command>) this.getClass();
         return clazz.getConstructor(GameManager.class).newInstance(gameManager);
     }
-
 }
\ No newline at end of file
diff --git a/src/main/java/com/comandante/creeper/player/Player.java b/src/main/java/com/comandante/creeper/player/Player.java
index 52586b0d..f6c4be8e 100644
--- a/src/main/java/com/comandante/creeper/player/Player.java
+++ b/src/main/java/com/comandante/creeper/player/Player.java
@@ -2,6 +2,7 @@ package com.comandante.creeper.player;
 
 
 import com.codahale.metrics.Meter;
+import com.comandante.creeper.CreeperUtils;
 import com.comandante.creeper.Items.ForageManager;
 import com.comandante.creeper.Items.Item;
 import com.comandante.creeper.Items.ItemType;
@@ -774,7 +775,9 @@ public class Player extends CreeperEntity {
             sb.append(Color.MAGENTA + "Effects--------------------------------" + Color.RESET).append("\r\n");
             sb.append(buldEffectsString()).append("\r\n");
         }
-        return sb.toString();
+        StringBuilder finalString = new StringBuilder();
+        Lists.newArrayList(sb.toString().split("[\\r\\n]+")).forEach(s -> finalString.append(CreeperUtils.trimTrailingBlanks(s)).append("\r\n"));
+        return finalString.toString();
     }
 
     public Stats getPlayerStatsWithEquipmentAndLevel() {
-- 
GitLab