Permalink
Browse files

Correct graphviz node names with hyphen

  • Loading branch information...
1 parent 3bd9938 commit 06b69456bd21b63562a65ffcb976b4d90225e877 @reiddraper reiddraper committed Oct 31, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 misc/mapdeps.erl
View
@@ -102,8 +102,7 @@ map_rebar(BaseDir, Path, Acc) ->
app_name(Path) ->
%% assumes Path ends in rebar.config
- re:replace(filename:basename(filename:dirname(Path)),
- "-", "_", [global, {return, list}]).
+ filename:basename(filename:dirname(Path)).
file_start() ->
io:format(standard_io, "digraph {~n", []).
@@ -112,4 +111,4 @@ file_end() ->
io:format(standard_io, "}~n", []).
file_edge(From, To) ->
- io:format(standard_io, " ~s -> ~s;~n", [From, To]).
+ io:format(standard_io, " \"~s\" -> ~s;~n", [From, To]).

0 comments on commit 06b6945

Please sign in to comment.