index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <girtler.daniel@gmail.com> | 2024-03-08 00:43:51 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 14:43:51 +0100 |
commit | 08a6d402c4792cae95aec196460dc67aadd86f3c (patch) | |
tree | a646e7f2366387750208bbd25d4e06b0f191d9d3 /archinstall/lib/utils/util.py | |
parent | f927fb6e6a17123c05c6595bbdb45ed771596ab9 (diff) |
-rw-r--r-- | archinstall/lib/utils/util.py | 8 |
diff --git a/archinstall/lib/utils/util.py b/archinstall/lib/utils/util.py index 8df75ab1..2e42b3cf 100644 --- a/archinstall/lib/utils/util.py +++ b/archinstall/lib/utils/util.py @@ -31,18 +31,18 @@ def is_subpath(first: Path, second: Path): return False -def format_cols(items: List[str], header: Optional[str]) -> str: +def format_cols(items: List[str], header: Optional[str] = None) -> str: if header: text = f'{header}:\n' else: text = '' nr_items = len(items) - if nr_items <= 5: + if nr_items <= 4: col = 1 - elif nr_items <= 10: + elif nr_items <= 8: col = 2 - elif nr_items <= 15: + elif nr_items <= 12: col = 3 else: col = 4 |