Fix issue when in MacOS system was left line breaks symbols.

This commit is contained in:
BONNe 2019-01-27 13:09:36 +02:00
parent 752ea5b435
commit c28e325f40

View File

@ -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;