Commits

Bryan Fink  committed 588522c

replace tabs with spaces bz://124

  • Participants
  • Parent commits 5f09635

Comments (0)

Files changed (5)

File ebin/mochiweb.app

         mochiweb_io,
         mochiweb_html,
         mochiweb_http,
-    	mochiweb_mime,
+        mochiweb_mime,
         mochiweb_multipart,
         mochiweb_request,
         mochiweb_response,
         reloader,
         mochifmt_std,
         mochifmt_records
-	    ]},
+            ]},
   {registered, []},
   {mod, {mochiweb_app, []}},
   {env, []},

File src/mochilogfile2.erl

     0;
 find_last_newline(FD, Location) ->
     case file:pread(FD, Location - 1, 1) of
-	{ok, <<$\n>>} ->
+        {ok, <<$\n>>} ->
             Location;
-	{ok, _} ->
-	    find_last_newline(FD, Location - 1)
+        {ok, _} ->
+            find_last_newline(FD, Location - 1)
     end.
 
 %%

File src/mochiutf8.erl

        C2 band 16#C0 =:= 16#80 ->
     %% U+0080 - U+07FF - 11 bits
     case ((C1 band 16#1F) bsl 6) bor (C2 band 16#3F) of
-	C when C < 16#80 ->
+        C when C < 16#80 ->
             %% Overlong encoding.
             invalid_utf8_indexes(Rest, 2 + N, [1 + N, N | Acc]);
         _ ->
        C3 band 16#C0 =:= 16#80 ->
     %% U+0800 - U+FFFF - 16 bits
     case ((((C1 band 16#0F) bsl 6) bor (C2 band 16#3F)) bsl 6) bor
-	(C3 band 16#3F) of
-	C when (C < 16#800) orelse (C >= 16#D800 andalso C =< 16#DFFF) ->
-	    %% Overlong encoding or surrogate.
+        (C3 band 16#3F) of
+        C when (C < 16#800) orelse (C >= 16#D800 andalso C =< 16#DFFF) ->
+            %% Overlong encoding or surrogate.
             invalid_utf8_indexes(Rest, 3 + N, [2 + N, 1 + N, N | Acc]);
-	_ ->
+        _ ->
             %% Upper bound U+FFFF does not need to be checked
-	    invalid_utf8_indexes(Rest, 3 + N, Acc)
+            invalid_utf8_indexes(Rest, 3 + N, Acc)
     end;
 invalid_utf8_indexes(<<C1, C2, C3, C4, Rest/binary>>, N, Acc)
   when C1 band 16#F8 =:= 16#F0,
     %% U+10000 - U+10FFFF - 21 bits
     case ((((((C1 band 16#0F) bsl 6) bor (C2 band 16#3F)) bsl 6) bor
            (C3 band 16#3F)) bsl 6) bor (C4 band 16#3F) of
-	C when (C < 16#10000) orelse (C > 16#10FFFF) ->
-	    %% Overlong encoding or invalid code point.
-	    invalid_utf8_indexes(Rest, 4 + N, [3 + N, 2 + N, 1 + N, N | Acc]);
-	_ ->
-	    invalid_utf8_indexes(Rest, 4 + N, Acc)
+        C when (C < 16#10000) orelse (C > 16#10FFFF) ->
+            %% Overlong encoding or invalid code point.
+            invalid_utf8_indexes(Rest, 4 + N, [3 + N, 2 + N, 1 + N, N | Acc]);
+        _ ->
+            invalid_utf8_indexes(Rest, 4 + N, Acc)
     end;
 invalid_utf8_indexes(<<_, Rest/binary>>, N, Acc) ->
     %% Invalid char

File src/mochiweb.app

         mochiweb_headers,
         mochiweb_html,
         mochiweb_http,
-    	mochiweb_mime,
+        mochiweb_mime,
         mochiweb_multipart,
         mochiweb_request,
         mochiweb_response,
         mochifmt,
         mochifmt_std,
         mochifmt_records
-	    ]},
+            ]},
   {registered, []},
   {mod, {mochiweb_app, []}},
   {env, []},

File src/mochiweb_multipart.erl

     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     BinContent = iolist_to_binary(Content),
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,
     TestCallback = fun (Next) -> test_callback(Next, Expect) end,
     ServerFun = fun (Socket) ->
                         ok = mochiweb_socket:send(Socket, BinContent),
-			exit(normal)
+                        exit(normal)
                 end,
     ClientFun = fun (Socket) ->
                         Req = fake_request(Socket, ContentType,