strip whitespace using rake
May 9th, 2009 • Uncategorized
This snippet is taken from the wonderful webrat library
desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
end
May 9th, 2009 • Uncategorized
This snippet is taken from the wonderful webrat library
desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
end