Sha256: b0ad46370e9f3b4437be039cf33dc6e0934261f6b81508e316e7c23bd8ef0a1c
Contents?: true
Size: 650 Bytes
Versions: 16
Compression:
Stored size: 650 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) require 'optparse' require 'ostruct' require 'recog' # Cleanup trailing whitespace around fingerprints Dir[ File.expand_path(File.join(File.dirname(__FILE__), "..", "xml")) + "/*.xml" ].each do |f| data = File.read(f). gsub(/\s+$/, ''). # Trailing whitespace and empty lines gsub("</fingerprint>", "</fingerprint>\n"). # Every fingerprint should have an empty line after it gsub("-->", "-->\n") # Every comment should have an empty line after it File.write(f, data) end
Version data entries
16 entries across 16 versions & 2 rubygems