Przeglądaj źródła

Added comments to explain the utf8 symbols Binary

pull/867/head
Byaruhanga Franklin 9 lat temu
rodzic
commit
2e2a37baf6
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      src/rebar_prv_deps_tree.erl

+ 3
- 3
src/rebar_prv_deps_tree.erl Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz