From e32a096bf51dac8bc4e4baf83e1ff6c6a97d3aa8 Mon Sep 17 00:00:00 2001 From: DarkSir23 Date: Fri, 17 May 2019 20:56:57 -0400 Subject: [PATCH] Testing a width fix. --- evennia/utils/evmenu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/utils/evmenu.py b/evennia/utils/evmenu.py index 8429c8fa47..3d4a944321 100644 --- a/evennia/utils/evmenu.py +++ b/evennia/utils/evmenu.py @@ -1058,7 +1058,7 @@ class EvMenu(object): nodetext_width_max = max(m_len(line) for line in nodetext.split("\n")) options_width_max = max(m_len(line) for line in optionstext.split("\n")) total_width = min(screen_width, max(options_width_max, nodetext_width_max)) - logger.log_msg("Total Width: %d\nOptions Width Max: %d\nNodeText Width Max: %d" % (total_width, options_with_max, nodetext_width_max)) + logger.log_msg("Total Width: %d\nOptions Width Max: %d\nNodeText Width Max: %d" % (total_width, options_width_max, nodetext_width_max)) separator1 = "_" * total_width + "\n\n" if nodetext_width_max else "" separator2 = "\n" + "_" * total_width + "\n\n" if total_width else "" return separator1 + "|n" + nodetext + "|n" + separator2 + "|n" + optionstext