improve on-screen format for ParsedTemplate

This commit is contained in:
Jonathan Shook 2021-08-10 10:34:02 -05:00
parent 28bf7b6e91
commit 14f43d7835

View File

@ -194,11 +194,11 @@ public class ParsedTemplate {
}
public String toString() {
String sb = "\n parsed: " +
String sb = "parsed: " +
StreamSupport.stream(Arrays.spliterator(spans), false)
.map(s -> "[" + s + "]").collect(Collectors.joining(",")) +
"\n missing bindings: " +
getMissing().stream().collect(Collectors.joining(",", "[", "]"));
(getMissing().size() > 0 ? "\n missing bindings: " +
getMissing().stream().collect(Collectors.joining(",", "[", "]")) : "");
return sb;
}