mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 23:43:06 +00:00
improving output formatting
This commit is contained in:
@@ -92,7 +92,7 @@ public class Core {
|
|||||||
TableRowIterator irows = DatabaseManager.query(c,
|
TableRowIterator irows = DatabaseManager.query(c,
|
||||||
"SELECT COUNT(*) from " + tb);
|
"SELECT COUNT(*) from " + tb);
|
||||||
List<TableRow> rows = irows.toList();
|
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")));
|
String.valueOf(rows.get(0).getLongColumn("count")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ public class UserCheck extends Check {
|
|||||||
"%-20s: %d\n", "Have email", info.get("Have email"));
|
"%-20s: %d\n", "Have email", info.get("Have email"));
|
||||||
for (Map.Entry<String, Integer> e : info.entrySet()) {
|
for (Map.Entry<String, Integer> e : info.entrySet()) {
|
||||||
if (!e.getKey().equals("Count") && !e.getKey().equals("Have email")) {
|
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()));
|
String.valueOf(e.getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user