[Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question

Michael Collins msc at freeswitch.org
Sun Apr 8 00:01:36 MSD 2012

/usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$"

1200+ files with trailing whitespace does seem a bit excessive, however I
don't know how large a "problem" it really is. If you're going to do
whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run
your whitespace cleanup script on just a few files, recompile them, verify
that it's all good, then commit & push. I don't know about the other devs,
but I would feel much more comfortable with small, controlled updates than
a large sweep that does a lot of files.

Just my $0.02...


On Sat, Apr 7, 2012 at 8:49 AM, Seven Du <dujinfang at gmail.com> wrote:

> cat -t mod_rtmp.c | grep I
> cat mod_rtmp.c | grep " $"
> some editors insert tabs automatically when you press enter.
> On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote:
> can you show us an example of code w/ trailing whitespaces?
> -MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120407/0899530b/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list