mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 21:07:47 +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<>();
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user