From 8730fc395e7ba41f257c05b8718704a456fb9601 Mon Sep 17 00:00:00 2001 From: dw-0 Date: Sun, 5 May 2024 19:15:25 +0200 Subject: [PATCH] refactor: be able to specify last character after printing a dialog Signed-off-by: Dominik Willner --- kiauh/utils/logger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiauh/utils/logger.py b/kiauh/utils/logger.py index 8c7d372..3a357ba 100644 --- a/kiauh/utils/logger.py +++ b/kiauh/utils/logger.py @@ -89,6 +89,7 @@ class Logger: content: List[str], custom_title: str = None, custom_color: DialogCustomColor = None, + end: str = "\n", ) -> None: dialog_color = Logger._get_dialog_color(title, custom_color) dialog_title = Logger._get_dialog_title(title, custom_title) @@ -99,7 +100,7 @@ class Logger: print( f"{top}{dialog_title_formatted}{dialog_content}{bottom}", - end="", + end=end, ) @staticmethod