From e01da39ed844fc8244c467c554d97f85bb249a0d Mon Sep 17 00:00:00 2001 From: Shadow15510 Date: Mon, 23 Aug 2021 00:18:18 +0200 Subject: [PATCH] fix bug on display --- asci_lib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/asci_lib.py b/asci_lib.py index 1b5ff3b..194f85e 100644 --- a/asci_lib.py +++ b/asci_lib.py @@ -251,7 +251,11 @@ def text_formater(string, screen_width=21, screen_height=6): return "\n".join(lines[:screen_height]) + "\n\n" + paragraph_formater(lines[screen_height:], screen_height) - lines = line_formater(string, screen_width).split("\n") + lines = [] + for line in string.split("\n"): + for formated_line in line_formater(line, screen_width).split("\n"): + lines.append(formated_line) + return paragraph_formater(lines, screen_height).split("\n\n")