Skip to content

Commit

Permalink
Fix whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuncer Ayaz committed Mar 18, 2012
1 parent 2c37270 commit b6fadef
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
13 changes: 6 additions & 7 deletions src/rebar_abnfc_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,12 @@ abnfc_is_present() ->
compile_abnfc(Source, _Target, Config) ->
case abnfc_is_present() of
false ->
?ERROR(
"~n===============================================~n"
" You need to install abnfc to compile ABNF grammars~n"
" Download the latest tarball release from github~n"
" https://github.com/nygge/abnfc~n"
" and install it into your erlang library dir~n"
"===============================================~n~n", []),
?ERROR("~n===============================================~n"
" You need to install abnfc to compile ABNF grammars~n"
" Download the latest tarball release from github~n"
" https://github.com/nygge/abnfc~n"
" and install it into your erlang library dir~n"
"===============================================~n~n", []),
?FAIL;
true ->
AbnfcOpts = abnfc_opts(Config),
Expand Down
16 changes: 8 additions & 8 deletions src/rebar_erlydtl_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ compile(Config, _AppFile) ->
option(source_ext, DtlOpts),
option(out_dir, DtlOpts),
option(module_ext, DtlOpts) ++ ".beam",
fun compile_dtl/3, [{check_last_mod, false}]),
fun compile_dtl/3,
[{check_last_mod, false}]),
true = code:set_path(OrigPath),
Result.

Expand All @@ -113,13 +114,12 @@ default(custom_tags_dir) -> "".
compile_dtl(Source, Target, Config) ->
case code:which(erlydtl) of
non_existing ->
?ERROR(
"~n===============================================~n"
" You need to install erlydtl to compile DTL templates~n"
" Download the latest tarball release from github~n"
" http://code.google.com/p/erlydtl/~n"
" and install it into your erlang library dir~n"
"===============================================~n~n", []),
?ERROR("~n===============================================~n"
" You need to install erlydtl to compile DTL templates~n"
" Download the latest tarball release from github~n"
" http://code.google.com/p/erlydtl/~n"
" and install it into your erlang library dir~n"
"===============================================~n~n", []),
?FAIL;
_ ->
case needs_compile(Source, Target, Config) of
Expand Down
13 changes: 6 additions & 7 deletions src/rebar_neotoma_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ default(source_ext) -> ".peg".
compile_neo(Source, Target, Config) ->
case code:which(neotoma) of
non_existing ->
?ERROR(
"~n===============================================~n"
" You need to install neotoma to compile PEG grammars~n"
" Download the latest tarball release from github~n"
" https://github.com/seancribbs/neotoma~n"
" and install it into your erlang library dir~n"
"===============================================~n~n", []),
?ERROR("~n===============================================~n"
" You need to install neotoma to compile PEG grammars~n"
" Download the latest tarball release from github~n"
" https://github.com/seancribbs/neotoma~n"
" and install it into your erlang library dir~n"
"===============================================~n~n", []),
?FAIL;
_ ->
case needs_compile(Source, Target, Config) of
Expand Down

0 comments on commit b6fadef

Please sign in to comment.