File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments