fixed extra space w/ blank module bug

This commit is contained in:
Noah Swerhun 2023-03-10 21:08:50 -06:00
parent ef21228dcf
commit 668c8ce66e

11
main.py
View file

@ -14,11 +14,14 @@ def print_bar():
print("%{c}", end="") print("%{c}", end="")
case "right": case "right":
print("%{r}", end="") print("%{r}", end="")
group = running_modules_dict[alignment] group = list(running_modules_dict[alignment].items())
for index, module in enumerate(group): for index, module in enumerate(group):
print(group[module], end="") print(module[1], end="")
if index != (len(group) - 1) and len(group[module]) > 0: if index != (len(group) - 1) and len(module[1]) > 0:
print(seperator, end="") for i in range(index + 1, len(group) - 1):
if len(group[i][1]) > 0:
print(seperator, end="")
break;
print(flush=True) print(flush=True)