From fcd459a7adadcff9c976a8e5c415ecc2babe4196 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 10 Apr 2023 23:10:39 +0300 Subject: [PATCH] Fixed version alignment --- slpkg/views/ascii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slpkg/views/ascii.py b/slpkg/views/ascii.py index ebb66e45..7ba5f413 100644 --- a/slpkg/views/ascii.py +++ b/slpkg/views/ascii.py @@ -71,7 +71,7 @@ class Ascii(Configs): def draw_view_package(self, package: str, version: str, size: str, color: str, repo: str) -> None: """ Draw nad print the packages. """ - if len(version) >= 11: + if len(version) >= 11 and self.columns <= 80: version: str = f'{version[:10]}...' if len(package) >= 25: package: str = f'{package[:24]}...'