Fix the spacing on the listcells

This commit is contained in:
graywolf336 2014-02-16 16:53:41 -06:00
parent 399b8662e5
commit e54dbc8a8c

View File

@ -30,9 +30,9 @@ public class JailListCellsCommand implements Command {
String message = ""; String message = "";
for(Cell c : j.getCells()) { for(Cell c : j.getCells()) {
if(message.isEmpty()) { if(message.isEmpty()) {
message = c.getName() + (c.getPrisoner() == null ? "" : "(" + c.getPrisoner().getName() + ")"); message = c.getName() + (c.getPrisoner() == null ? "" : " (" + c.getPrisoner().getName() + ")");
}else { }else {
message += ", " + c.getName() + (c.getPrisoner() == null ? "" : "(" + c.getPrisoner().getName() + ")"); message += ", " + c.getName() + (c.getPrisoner() == null ? "" : " (" + c.getPrisoner().getName() + ")");
} }
} }