From 7fcfedade0819e420db269da2b5199e58348bdfa Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Sat, 24 Nov 2018 22:47:28 -0600 Subject: [PATCH] Better strategy for truncating long usernames. --- menu_screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu_screen.py b/menu_screen.py index 90b3602..3f3d6dd 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -308,7 +308,7 @@ class CursedMenu(object): return plant_table def format_garden_entry(self, entry): - return "{:14} - {:>16} - {:>8}p - {}".format(*entry) + return "{:14.14} - {:>16} - {:>8}p - {}".format(*entry) def sort_garden_table(self, table, column, ascending): """ Sort table in place by a specified column """