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):
1533
1533
the -t flag.
1534
1534
"""
1535
1535
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
1539
1540
1540
1541
# first header
1541
1542
center_string = " Selected container tags "
@@ -1602,7 +1603,7 @@ def fetch_docker_tags(self):
1602
1603
]
1603
1604
# writes the string to the stdout
1604
1605
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 (
1606
1607
* entry , * final_width ), color )
1607
1608
)
1608
1609
# assures that the entire line gets the same color
You can’t perform that action at this time.
0 commit comments