Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: wlang2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 12 lines (10 sloc) 0.256 kb
1 2 3 4 5 6 7 8 9 10 11
def clean_file(file)
  c = File.read(file)
  c.gsub!(/[ \t]+\n/, "\n")
  File.open(file, 'w'){|io|
    io << c
  }
end

Dir["**/*.rb"].each{|file| clean_file(file)}
Dir["**/*.yml"].each{|file| clean_file(file)}
Dir["**/*.md"].each{|file| clean_file(file)}
Something went wrong with that request. Please try again.