Skip to content

Commit

Permalink
major trailing whitespace cleanup
Browse files Browse the repository at this point in the history
Remove trailing whitespace in all .erl and .hrl files in the
repository.

If you're an emacs user, you can easily see trailing whitespace using
settings like these in your ~/.emacs file:

(setq-default show-trailing-whitespace t)
(set-face-background 'trailing-whitespace "slate gray")

You can also delete trailing whitespace automatically when you save
your Erlang sources by setting the emacs before-save-hook in your
~/.emacs file like this:

(add-hook 'before-save-hook
          '(lambda () (if (eq major-mode 'erlang-mode)
                          (delete-trailing-whitespace))))
  • Loading branch information
vinoski committed Apr 20, 2011
1 parent f74f67a commit 455578a
Show file tree
Hide file tree
Showing 75 changed files with 1,304 additions and 1,304 deletions.
14 changes: 7 additions & 7 deletions applications/chat/src/chat.erl
@@ -1,8 +1,8 @@
% -*- Erlang -*-
% -*- Erlang -*-
% File: chat.erl (chat.erl)
% Author: Johan Bevemyr
% Created: Thu Nov 18 21:27:41 2004
% Purpose:
% Purpose:

-module('chat').
-author('jb@son.bevemyr.com').
Expand Down Expand Up @@ -34,7 +34,7 @@
color,
cookie}).


login(User, Password) ->
session_server(),
erlang:send(chat_server, {new_session, User, self()}),
Expand Down Expand Up @@ -187,7 +187,7 @@ chat_server(Users0) ->
5000 ->
chat_server(Users)
end.


%%

Expand Down Expand Up @@ -226,7 +226,7 @@ send_to_all(Type, Msg, Users) ->
if U#user.pid /= undefined ->
%% io:format("Sending ~p to ~p\n", [Msg, U#user.user]),
U#user.pid ! {msgs, [{Type, Msg}]},
U#user{pid=undefined, last_read = Now};
U#user{pid=undefined, last_read = Now};
true ->
U#user{buffer=[{Type,Msg}|U#user.buffer]}
end
Expand All @@ -241,7 +241,7 @@ send_to_one(Type, Msg, Users, User) ->
if U#user.pid /= undefined ->
%% io:format("Sending ~p to ~p\n", [Msg, U#user.user]),
U#user.pid ! {msgs, [{Type, Msg}]},
U#user{pid=undefined, last_read = Now};
U#user{pid=undefined, last_read = Now};
true ->
U#user{buffer=[{Type,Msg}|U#user.buffer]}
end;
Expand Down Expand Up @@ -359,7 +359,7 @@ fmt_msg(User, Msg, Color) ->

%%

fmt_members(Users) ->
fmt_members(Users) ->
[[U#user.user,"<br>"] || U <- Users].

%%
Expand Down
8 changes: 4 additions & 4 deletions applications/mail/src/attachment.erl
@@ -1,7 +1,7 @@
%%%-------------------------------------------------------------------
%%% File : attachment.erl
%%% Author : <klacke@hyber.org>
%%% Description :
%%% Description :
%%%
%%% Created : 4 Feb 2004 by <klacke@hyber.org>
%%%-------------------------------------------------------------------
Expand All @@ -28,8 +28,8 @@ err() ->
[{status, 404},
{header, {connection, "close"}}].






4 changes: 2 additions & 2 deletions applications/mail/src/defs.hrl
@@ -1,8 +1,8 @@
% -*- Erlang -*-
% -*- Erlang -*-
% File: defs.hrl (/mnt/disk2/jb/work/yaws/yaws/applications/mail/src/defs.hrl)
% Author: Johan Bevemyr
% Created: Wed Oct 29 23:39:30 2003
% Purpose:
% Purpose:

-ifndef(DEFS_HRL).
-define(DEFS_HRL, true).
Expand Down

0 comments on commit 455578a

Please sign in to comment.