diff options
author | Byaruhanga Franklin <byaruhaf@rovcos.com> | 2015-10-13 02:27:45 +0300 |
---|---|---|
committer | Byaruhanga Franklin <byaruhaf@rovcos.com> | 2015-10-13 02:27:45 +0300 |
commit | aff273316da2822d589faf202598f9f282bf6f32 (patch) | |
tree | d5d1500b99be08e33c7294ed39683acc2eb391ab /src | |
parent | 6e4ab1e7231bb3d752d6ffa7b76cac7c7ae8f561 (diff) |
Fix for issue #859 - unicode rendering of deps tree based on PR #865
Fix for issue #859 - unicode rendering of deps tree based on PR #865
modified PR #865 to the /utf8 flag indicates this is supposed to be a UTF8 string.
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_deps_tree.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_prv_deps_tree.erl b/src/rebar_prv_deps_tree.erl index 04c4837..07c25ea 100644 --- a/src/rebar_prv_deps_tree.erl +++ b/src/rebar_prv_deps_tree.erl @@ -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, <<"└─ "/utf8>>]), [Prefix, " "]; _ -> - io:format("~ts├─ ", [Prefix]), + io:format("~ts~ts", [Prefix, <<"├─ "/utf8>>]), [Prefix, "│ "] end, - io:format("~ts─~ts (~ts)~n", [Name, Vsn, type(Source, Verbose)]), + io:format("~ts~ts~ts (~ts)~n", [Name, <<"─"/utf8>>, Vsn, type(Source, Verbose)]), case dict:find(Name, Dict) of {ok, Children} -> print_children(Prefix1, lists:keysort(1, Children), Dict, Verbose), |