mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-01-02 14:29:01 +01:00
Fix issue when in MacOS system was left line breaks symbols.
This commit is contained in:
parent
752ea5b435
commit
c28e325f40
@ -381,7 +381,7 @@ public class GuiUtils
|
|||||||
List<String> result = new ArrayList<>();
|
List<String> result = new ArrayList<>();
|
||||||
|
|
||||||
Arrays.stream(string.split("\\|")).
|
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);
|
forEach(result::addAll);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user