Skip to content

Commit

Permalink
Fix issue when in MacOS system was left line breaks symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 27, 2019
1 parent 752ea5b commit c28e325
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public static List<String> stringSplit(String string)
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;
Expand Down

0 comments on commit c28e325

Please sign in to comment.