mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Task to remove consecutive blank lines
This commit is contained in:
@@ -7,5 +7,9 @@ namespace :whitespace do
|
||||
task :retab do
|
||||
sh %{find . -name '*.rb' -exec sed -i '' 's/\t/ /g' {} \\;}
|
||||
end
|
||||
desc 'Remove consecutive blank lines'
|
||||
task :scrub_gratuitous_newlines do
|
||||
sh %{find . -name '*.rb' -exec sed -i '' '/./,/^$/!d' {} \\;}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user