Skip to content

Commit

Permalink
Concatenate .toString of elements in iterableplaceholder
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOellerer committed Aug 9, 2023
1 parent f836817 commit b45ca6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group 'com.docutools'
version = '1.6.3'
version = '1.6.4-beta.1'

java {
toolchain {
Expand Down
Expand Up @@ -5,6 +5,7 @@
import com.docutools.jocument.PlaceholderType;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;

Expand Down Expand Up @@ -45,4 +46,10 @@ public long count() {
return count;
}

@Override
public String toString() {
return StreamSupport.stream(iterable.spliterator(), false)
.map(Object::toString)
.collect(Collectors.joining(", "));
}
}

0 comments on commit b45ca6d

Please sign in to comment.