rebar_erlydtl_compiler: fix incorrect lists:keysort/2 call

This commit is contained in:
Tuncer Ayaz 2012-11-10 21:49:52 +01:00
parent 0c8dd15c79
commit 93f6ef36af

View file

@ -133,7 +133,7 @@ erlydtl_opts(Config) ->
Tuples = [{K,V} || {K,V} <- Opts],
case [L || L <- Opts, is_list(L), not io_lib:printable_list(L)] of
[] ->
lists:keysort(1, [Tuples]);
lists:keysort(1, Tuples);
Lists ->
lists:map(fun(L) ->
lists:keysort(1, lists:foldl(fun({K,T}, Acc) ->