27 lines
879 B
Diff
27 lines
879 B
Diff
|
From 4139a739f3cfafdb46e511f09b58644cd8c9addb Mon Sep 17 00:00:00 2001
|
||
|
From: serge <saleyn@gmail.com>
|
||
|
Date: Thu, 15 Nov 2012 16:34:06 -0500
|
||
|
Subject: [PATCH 10/10] Fix default DTL compilation when no erlydtl_opts are
|
||
|
provided
|
||
|
|
||
|
---
|
||
|
src/rebar_erlydtl_compiler.erl | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl
|
||
|
index b5fe899..aef41c5 100644
|
||
|
--- a/src/rebar_erlydtl_compiler.erl
|
||
|
+++ b/src/rebar_erlydtl_compiler.erl
|
||
|
@@ -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) ->
|
||
|
--
|
||
|
1.8.1.4
|
||
|
|