We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc258b commit 1d8fa0cCopy full SHA for 1d8fa0c
.gitignore
@@ -1,4 +1,5 @@
1
.DS_Store
2
doc
3
pkg
4
+test
5
.yardoc
lib/csv-diff-report/html.rb
@@ -1,5 +1,8 @@
require 'cgi'
-require 'lcs-diff' rescue nil
+begin
+ require 'lcs-diff'
+rescue LoadError
+end
6
7
8
class CSVDiff
@@ -171,7 +174,7 @@ def html_diff(body, file_diff)
171
174
body << '<td>'
172
175
if style == 'update' && @lcs_available && old && new && (old.to_s.lines.count > 1 || new.to_s.lines.count > 1)
173
176
body << '<code>'
- Diff::LCS.diff(old.lines, new.lines).each_with_index |chg_set, j|
177
+ Diff::LCS.diff(old.lines, new.lines).each_with_index do |chg_set, j|
178
body << '...' unless j == 0
179
chg_set.each do |lcs_diff|
180
body << "#{lcs_diff.position} <span class='#{
0 commit comments