Skip to content

Commit 972cd7d

Browse files
committed
Fix show --tre
1 parent 27ce5b4 commit 972cd7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

poetry/console/commands/show.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ def _display_tree(self,
180180
break
181181

182182
dependencies = sorted(dependencies, key=lambda x: x.name)
183-
tree_bar = previous_tree_bar + ' ├'
183+
tree_bar = previous_tree_bar + ' ├'
184184
i = 0
185185
total = len(dependencies)
186186
for dependency in dependencies:
187187
i += 1
188188
current_tree = packages_in_tree
189189
if i == total:
190-
tree_bar = previous_tree_bar + '└'
190+
tree_bar = previous_tree_bar + ' └'
191191

192192
color_ident = level % len(self.colors)
193193
color = self.colors[color_ident]
@@ -196,7 +196,7 @@ def _display_tree(self,
196196
if dependency.name in current_tree:
197197
circular_warn = '(circular dependency aborted here)'
198198

199-
info = f'{tree_bar}── <{color}>{dependency.name}</{color} ' \
199+
info = f'{tree_bar}── <{color}>{dependency.name}</{color}> ' \
200200
f'{dependency.pretty_constraint} {circular_warn}'
201201
self._write_tree_line(info)
202202

0 commit comments

Comments
 (0)