Bläddra i källkod

Merge pull request #867 from byaruhaf/patch-1

Fix for issue #859 - unicode rendering of deps tree based on PR #865
pull/877/head
Fred Hebert 9 år sedan
förälder
incheckning
e0d7f262ac
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. +3
    -3
      src/rebar_prv_deps_tree.erl

+ 3
- 3
src/rebar_prv_deps_tree.erl Visa fil

@ -66,13 +66,13 @@ print_children(_, [], _, _) ->
print_children(Prefix, [{Name, Vsn, Source} | Rest], Dict, Verbose) ->
Prefix1 = case Rest of
[] ->
io:format("~ts└─ ", [Prefix]),
io:format("~ts~ts", [Prefix, <<226,148,148,226,148,128,32>>]), %Binary for utf8%
[Prefix, " "];
_ ->
io:format("~ts├─ ", [Prefix]),
io:format("~ts~ts", [Prefix, <<226,148,156,226,148,128,32>>]), %Binary for utf8%
[Prefix, ""]
end,
io:format("~ts~ts (~ts)~n", [Name, Vsn, type(Source, Verbose)]),
io:format("~ts~ts~ts (~ts)~n", [Name, <<226,148,128>>, Vsn, type(Source, Verbose)]), %Binary for utf8%
case dict:find(Name, Dict) of
{ok, Children} ->
print_children(Prefix1, lists:keysort(1, Children), Dict, Verbose),

Laddar…
Avbryt
Spara