From db1eba5f3cb3c46fb5520105c6944264fffd54fb Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Thu, 9 May 2024 00:13:26 +0100 Subject: [PATCH] left spacing regardless description --- cli/openbb_cli/config/menu_text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/openbb_cli/config/menu_text.py b/cli/openbb_cli/config/menu_text.py index 52dd1c6201c..e4b4e1bf8c2 100644 --- a/cli/openbb_cli/config/menu_text.py +++ b/cli/openbb_cli/config/menu_text.py @@ -112,8 +112,9 @@ class MenuText: """Append raw text (without translation).""" spacing = (self.CMD_NAME_LENGTH - len(text) + self.SECTION_SPACING) * " " left_spacing = self.SECTION_SPACING * " " + text = f"{left_spacing}{text}" if description: - text = f"{left_spacing}{text}{spacing}{description}\n" + text = f"{text}{spacing}{description}\n" if leading_new_line: self.menu_text += "\n" + text