Skip to content

Commit

Permalink
Script: Only export non-empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterDruide1 committed Oct 7, 2022
1 parent 3238cfc commit fdcf950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/github/jadefalke2/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public boolean closeScript(){
* @return the script as a string
*/
public String getFull (){
return IntStream.range(0, inputLines.size()).mapToObj(i -> inputLines.get(i).getFull(i)+"\n").collect(Collectors.joining());
return IntStream.range(0, inputLines.size()).filter(i -> !inputLines.get(i).isEmpty()).mapToObj(i -> inputLines.get(i).getFull(i)+"\n").collect(Collectors.joining());
}

/**
Expand Down

0 comments on commit fdcf950

Please sign in to comment.