-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from stevendaniels/replace-hard-tabs
Replace hard tabs with soft tabs
- Loading branch information
Showing
3 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
require 'roo' | ||
Dir.glob("test/files/*.ods").each do |fn| | ||
begin | ||
oo = Roo::OpenOffice.new fn | ||
print File.basename(fn) + " " | ||
puts oo.officeversion | ||
rescue Zip::ZipError, Errno::ENOENT => e | ||
# file is not a real .ods spreadsheet file | ||
puts e.message | ||
end | ||
|
||
Dir.glob('test/files/*.ods').each do |fn| | ||
begin | ||
oo = Roo::OpenOffice.new fn | ||
print "#{File.basename(fn)} " | ||
puts oo.officeversion | ||
rescue Zip::ZipError, Errno::ENOENT => e | ||
# file is not a real .ods spreadsheet file | ||
puts e.message | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters