Fix whitespace errors

This commit is contained in:
Tuncer Ayaz 2012-06-11 19:32:41 +02:00
parent 4414f6548a
commit 8d81b322ed

View file

@ -66,9 +66,11 @@
BaseName = filename:basename(F, ".template"),
{ok, Template} = file:consult(F),
{_, VarList} = lists:keyfind(variables, 1, Template),
Vars = lists:foldl(fun({V,_}, Acc) -> [atom_to_list(V)|Acc] end, [], VarList),
?CONSOLE("\t* ~s: ~s (~p) (variables: ~p)\n", [BaseName, F, Type,
string:join(Vars, ", ")])
Vars = lists:foldl(fun({V,_}, Acc) ->
[atom_to_list(V) | Acc]
end, [], VarList),
?CONSOLE("\t* ~s: ~s (~p) (variables: ~p)\n",
[BaseName, F, Type, string:join(Vars, ", ")])
end || {Type, F} <- AvailTemplates],
ok.