From c28e325f40fed6215d647883fccd68a6ff132477 Mon Sep 17 00:00:00 2001 From: BONNe Date: Sun, 27 Jan 2019 13:09:36 +0200 Subject: [PATCH] Fix issue when in MacOS system was left line breaks symbols. --- src/main/java/world/bentobox/challenges/utils/GuiUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/challenges/utils/GuiUtils.java b/src/main/java/world/bentobox/challenges/utils/GuiUtils.java index 737f735..89ad053 100644 --- a/src/main/java/world/bentobox/challenges/utils/GuiUtils.java +++ b/src/main/java/world/bentobox/challenges/utils/GuiUtils.java @@ -381,7 +381,7 @@ public class GuiUtils List result = new ArrayList<>(); Arrays.stream(string.split("\\|")). - map(line -> Arrays.asList(WordUtils.wrap(line, 25).split("\\r\\n"))). + map(line -> Arrays.asList(WordUtils.wrap(line, 25).split(System.getProperty("line.separator")))). forEach(result::addAll); return result;