improving output formatting

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

View File

@@ -92,7 +92,7 @@ public class Core {
TableRowIterator irows = DatabaseManager.query(c,
"SELECT COUNT(*) from " + tb);
List<TableRow> rows = irows.toList();
ret += String.format("Count %s: %s\n", tb,
ret += String.format("Count %-14s: %s\n", tb,
String.valueOf(rows.get(0).getLongColumn("count")));
}

View File

@@ -67,7 +67,7 @@ public class UserCheck extends Check {
"%-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("%-20s: %s\n", e.getKey(),
ret += String.format("%-21s: %s\n", e.getKey(),
String.valueOf(e.getValue()));
}
}