brew-deps: improved --tree formatting
Use proper BOX DRAWINGS LIGHT VERTICAL unicode character. Closes Homebrew/homebrew#46158. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
6f5307fbd9
commit
a9b380539c
@ -82,7 +82,7 @@ module Homebrew
|
||||
max = deps.length - 1
|
||||
deps.each_with_index do |dep, i|
|
||||
chr = i == max ? "└──" : "├──"
|
||||
prefix_ext = i == max ? " " : "| "
|
||||
prefix_ext = i == max ? " " : "│ "
|
||||
puts prefix + "#{chr} #{dep.name}"
|
||||
recursive_deps_tree(Formulary.factory(dep.name), prefix + prefix_ext)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user