mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Updated for version alignment
This commit is contained in:
parent
a0324a11a6
commit
16a7f29bca
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Ascii(Configs):
|
||||||
def draw_package_line(self, package: str, version: str, size: str, color: str, repo: str) -> None:
|
def draw_package_line(self, package: str, version: str, size: str, color: str, repo: str) -> None:
|
||||||
""" Draw nad print the packages. """
|
""" Draw nad print the packages. """
|
||||||
if len(version) >= 11 and self.columns <= 80:
|
if len(version) >= 11 and self.columns <= 80:
|
||||||
version: str = f'{version[:10]}...'
|
version: str = f'{version[:self.version_alignment - 5]}...'
|
||||||
if len(package) >= 10 and self.columns <= 80:
|
if len(package) >= 10 and self.columns <= 80:
|
||||||
package: str = f'{package[:self.package_alignment - 5]}...'
|
package: str = f'{package[:self.package_alignment - 5]}...'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue