fix: preview line size
This commit is contained in:
parent
e2870e2ced
commit
4d85721b8a
2
Menu.py
2
Menu.py
@ -26,7 +26,7 @@ def preview_formater(title: str, body: str, size_x: int, size_y: int):
|
||||
out += f"┌── {title} " + "─" * (size_x - 6 - len(title)) + "┐\n"
|
||||
lines = body.split("\n");
|
||||
for line in lines[:size_y - 2]:
|
||||
out += f"│ {line[: size_x - 4]}" + " " * (size_x - 3 - len(line)) + "│\n"
|
||||
out += f"│ {line[: size_x - 3]}" + " " * (size_x - 3 - len(line)) + "│\n"
|
||||
out += "└" + "─" * (size_x - 2) + "┘"
|
||||
return (out);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user