From 49b7edef7f1e929bbeea6eb4c587726c3087f3a5 Mon Sep 17 00:00:00 2001 From: zfh Date: Tue, 19 May 2020 17:08:36 +0800 Subject: [PATCH] Fix #49 --- .../client/event/ClientEventListener_CODE_SHOW_ROOMS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_SHOW_ROOMS.java b/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_SHOW_ROOMS.java index 43c6e04..919a05a 100644 --- a/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_SHOW_ROOMS.java +++ b/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_SHOW_ROOMS.java @@ -20,7 +20,7 @@ public class ClientEventListener_CODE_SHOW_ROOMS extends ClientEventListener{ List> roomList = Noson.convert(data, new NoType>>() {}); if(roomList != null && ! roomList.isEmpty()){ // "COUNT" begins after NICKNAME_MAX_LENGTH characters. The dash means that the string is left-justified. - String format = "#\t%s\t|\t%-" + NICKNAME_MAX_LENGTH + "s\t|\t%s\t|\t%s\t#\n"; + String format = "#\t%s\t|\t%-" + NICKNAME_MAX_LENGTH + "s\t|\t%-6s\t|\t%-6s\t#\n"; FormatPrinter.printNotice(format, "ID", "OWNER", "COUNT", "TYPE"); for(Map room: roomList) { FormatPrinter.printNotice(format, room.get("roomId"), room.get("roomOwner"), room.get("roomClientCount"), room.get("roomType"));