Fix default DTL compilation when no erlydtl_opts are provided

This commit is contained in:
serge 2012-11-15 16:34:06 -05:00
parent 7dad2b384b
commit edfee29b15

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) ->