fix: preview line size
This commit is contained in:
		
							
								
								
									
										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); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user