empty suggested values won't show. Fixes #926
This commit is contained in:
1 parent
096e62b865
commit
c1c7313a99
1 file changed
+1
-1
@@ -500,7 +500,7 @@ public class SettingsManager
|
|||||||
ps.println("* Type: `" + rule.type.getSimpleName() + "` ");
|
ps.println("* Type: `" + rule.type.getSimpleName() + "` ");
|
||||||
ps.println("* Default value: `" + rule.defaultAsString + "` ");
|
ps.println("* Default value: `" + rule.defaultAsString + "` ");
|
||||||
String optionString = rule.options.stream().map(s -> "`" + s + "`").collect(Collectors.joining(", "));
|
String optionString = rule.options.stream().map(s -> "`" + s + "`").collect(Collectors.joining(", "));
|
||||||
ps.println((rule.isStrict?"* Required":"* Suggested")+" options: " + optionString + " ");
|
if (!optionString.isEmpty()) ps.println((rule.isStrict?"* Required":"* Suggested")+" options: " + optionString + " ");
|
||||||
ps.println("* Categories: " + rule.categories.stream().map(s -> "`" + s.toUpperCase(Locale.ROOT) + "`").collect(Collectors.joining(", ")) + " ");
|
ps.println("* Categories: " + rule.categories.stream().map(s -> "`" + s.toUpperCase(Locale.ROOT) + "`").collect(Collectors.joining(", ")) + " ");
|
||||||
boolean preamble = false;
|
boolean preamble = false;
|
||||||
for (Validator<?> validator : rule.validators)
|
for (Validator<?> validator : rule.validators)
|
||||||
|
|||||||
Reference in new issue
Block a user