Skip to content

Commit

Permalink
here too
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heller committed Jan 18, 2012
1 parent 147c8cf commit 6b6c4b4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/zview_scanner.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@
%% @end %% @end
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
scan(Template) -> scan(Template) ->
{ok, Scan} = scan(Template, [], {1, 1}, in_text), case scan(Template, [], {1, 1}, in_text) of
Cleaned = cleanup(Scan, []), {ok, Scan} ->
{ok, Cleaned}. Cleaned = cleanup(Scan, []),
{ok, Cleaned};


{error, Reason} ->
{error, Reason}
end.


cleanup([], Result) -> cleanup([], Result) ->
lists:reverse(Result); lists:reverse(Result);
Expand Down

0 comments on commit 6b6c4b4

Please sign in to comment.