From e52e90454da4778cdd17e074776019ad85e8b449 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 7 Sep 2019 15:44:38 -0600 Subject: [PATCH] Fix seperator length --- scripts/wk/std.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index 7905ce86..53e2fadd 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -130,12 +130,13 @@ class Menu(): # Check title line(s) for line in self.title.split('\n'): - separator_length = max(separator_length, len(line)) + separator_length = max(separator_length, len(strip_colors(line))) # Loop over all item names for section in (self.actions, self.options, self.sets, self.toggles): for details in section.values(): - separator_length = max(separator_length, len(details['Display Name'])) + line = strip_colors(details['Display Name']) + separator_length = max(separator_length, len(line)) separator_length += 1 # Done