summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/htmldiff8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/htmldiff b/bin/htmldiff
index 14114a7..bcd89d2 100755
--- a/bin/htmldiff
+++ b/bin/htmldiff
@@ -1,11 +1,11 @@
#! /usr/bin/env ruby -w
# frozen_string_literal: true
-require 'diff/lcs'
-require 'diff/lcs/htmldiff'
+require "diff/lcs"
+require "diff/lcs/htmldiff"
begin
- require 'text/format'
+ require "text/format"
rescue LoadError
Diff::LCS::HTMLDiff.can_expand_tabs = false
end
@@ -24,7 +24,7 @@ options = { :title => "diff #{ARGV[0]} #{ARGV[1]}" }
htmldiff = Diff::LCS::HTMLDiff.new(left, right, options)
if ARGV[2]
- File.open(ARGV[2], 'w') do |f|
+ File.open(ARGV[2], "w") do |f|
htmldiff.options[:output] = f
htmldiff.run
end