Skip to content

Commit 235a529

Browse files
committed
container list output correction
1 parent 28b7515 commit 235a529

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

flowcraft/generator/engine.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,10 @@ def fetch_docker_tags(self):
15331533
the -t flag.
15341534
"""
15351535

1536-
# fetches terminal width and subtracts 1 because we always add a
1537-
# new line character
1538-
terminal_width = shutil.get_terminal_size().columns - 1
1536+
# fetches terminal width and subtracts 3 because we always add a
1537+
# new line character and we want a space at the beggining and at the end
1538+
# of each line
1539+
terminal_width = shutil.get_terminal_size().columns - 3
15391540

15401541
# first header
15411542
center_string = " Selected container tags "
@@ -1602,7 +1603,7 @@ def fetch_docker_tags(self):
16021603
]
16031604
# writes the string to the stdout
16041605
sys.stdout.write(
1605-
colored_print("\n{0: <{3}} {1: ^{4}} {2: >{5}}".format(
1606+
colored_print("\n {0: <{3}} {1: ^{4}} {2: >{5}}".format(
16061607
*entry, *final_width), color)
16071608
)
16081609
# assures that the entire line gets the same color

0 commit comments

Comments
 (0)