summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-01-17 11:55:07 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-01-17 17:04:07 +0100
commit2cae2950c4f39c0541fc80d713ec5c2028b0a098 (patch)
tree8be777fe09b30724f091c1ff8478d33c27683435
parente6caab00d597702877fc16aa705fe1d48a6d9395 (diff)
Fix whitespace errors
-rw-r--r--src/rebar_erlydtl_compiler.erl2
-rw-r--r--src/rebar_lfe_compiler.erl20
-rw-r--r--src/rebar_neotoma_compiler.erl18
3 files changed, 20 insertions, 20 deletions
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl
index 0bb1a72..821ab4a 100644
--- a/src/rebar_erlydtl_compiler.erl
+++ b/src/rebar_erlydtl_compiler.erl
@@ -157,7 +157,7 @@ needs_compile(Source, Target, Config) ->
referenced_dtls(Source, Config) ->
Set = referenced_dtls1([Source], Config,
- sets:add_element(Source, sets:new())),
+ sets:add_element(Source, sets:new())),
sets:to_list(sets:del_element(Source, Set)).
referenced_dtls1(Step, Config, Seen) ->
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl
index 48a92a2..66b5140 100644
--- a/src/rebar_lfe_compiler.erl
+++ b/src/rebar_lfe_compiler.erl
@@ -49,16 +49,16 @@ compile_lfe(Source, _Target, Config) ->
case code:which(lfe_comp) of
non_existing ->
?ERROR(<<
- "~n"
- "*** MISSING LFE COMPILER ***~n"
- " You must do one of the following:~n"
- " a) Install LFE globally in your erl libs~n"
- " b) Add LFE as a dep for your project, eg:~n"
- " {lfe, \"0.6.1\",~n"
- " {git, \"git://github.com/rvirding/lfe\",~n"
- " {tag, \"v0.6.1\"}}}~n"
- "~n"
- >>, []),
+ "~n"
+ "*** MISSING LFE COMPILER ***~n"
+ " You must do one of the following:~n"
+ " a) Install LFE globally in your erl libs~n"
+ " b) Add LFE as a dep for your project, eg:~n"
+ " {lfe, \"0.6.1\",~n"
+ " {git, \"git://github.com/rvirding/lfe\",~n"
+ " {tag, \"v0.6.1\"}}}~n"
+ "~n"
+ >>, []),
?FAIL;
_ ->
Opts = [{i, "include"}, {outdir, "ebin"}, report]
diff --git a/src/rebar_neotoma_compiler.erl b/src/rebar_neotoma_compiler.erl
index 988fa42..46b77b0 100644
--- a/src/rebar_neotoma_compiler.erl
+++ b/src/rebar_neotoma_compiler.erl
@@ -49,22 +49,22 @@
%% ============================================================================
compile(Config, _AppFile) ->
- NeoOpts = neotoma_opts(Config),
- rebar_base_compiler:run(Config, [],
- option(doc_root, NeoOpts), ".peg",
- option(out_dir, NeoOpts),
- option(module_ext, NeoOpts) ++ ".beam",
- fun compile_neo/3, [{check_last_mod,false}]).
+ NeoOpts = neotoma_opts(Config),
+ rebar_base_compiler:run(Config, [],
+ option(doc_root, NeoOpts), ".peg",
+ option(out_dir, NeoOpts),
+ option(module_ext, NeoOpts) ++ ".beam",
+ fun compile_neo/3, [{check_last_mod,false}]).
%% ============================================================================
%% Public API
%% ============================================================================
neotoma_opts(Config) ->
- rebar_config:get(Config, neotoma_opts, []).
+ rebar_config:get(Config, neotoma_opts, []).
option(Opt, Options) ->
- proplists:get_value(Opt, Options, default(Opt)).
+ proplists:get_value(Opt, Options, default(Opt)).
default(doc_root) -> "src";
default(out_dir) -> "src";
@@ -116,7 +116,7 @@ needs_compile(Source, Target, Config) ->
referenced_pegs(Source, Config) ->
Set = referenced_pegs1([Source], Config,
- sets:add_element(Source, sets:new())),
+ sets:add_element(Source, sets:new())),
sets:to_list(sets:del_element(Source, Set)).
referenced_pegs1(Step, Config, Seen) ->