ソースを参照

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.
pull/867/head
Byaruhanga Franklin 9年前
コミット
aff273316d
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/rebar_prv_deps_tree.erl

+ 3
- 3
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),

読み込み中…
キャンセル
保存