improve formatting

This commit is contained in:
jm
2015-08-03 10:02:32 +02:00
committed by Ondřej Košarko
parent aed0741fec
commit 565d391eb8
3 changed files with 10 additions and 8 deletions

View File

@@ -62,16 +62,18 @@ public class UserCheck extends Check {
}
ret += String.format(
"Users: %d\n", info.get("Count"));
"%-20s: %d\n", "Users", info.get("Count"));
ret += String.format(
"Have email: %d\n", info.get("Have email"));
"%-20s: %d\n", "Have email", info.get("Have email"));
for (Map.Entry<String, Integer> e : info.entrySet()) {
if (!e.getKey().equals("Count") && !e.getKey().equals("Have email")) {
ret += String.format("%s: %s\n", e.getKey(),
ret += String.format("%-20s: %s\n", e.getKey(),
String.valueOf(e.getValue()));
}
}
ret += "\n";
try {
// empty group
List<String> egs = Core.getEmptyGroups();