summaryrefslogtreecommitdiff
path: root/lib/diff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2013-12-31 11:45:43 -0800
committerAustin Ziegler <austin@zieglers.ca>2013-12-31 11:45:43 -0800
commit8950f333ee55e26c9f33f9d0012115fd26114a6d (patch)
tree368b45800b645c152fffde7be7e67c82a7341e5c /lib/diff
parent704bc2c0000b5f9bf49d607dcd0d3989b63b2595 (diff)
parentc458ef52827bf8a469d526c2b6dd7e402a71dda7 (diff)
downloaddiff-lcs-8950f333ee55e26c9f33f9d0012115fd26114a6d.tar.gz
Merge pull request #25 from hubrix/patch-1
Update htmldiff.rb
Diffstat (limited to 'lib/diff')
-rw-r--r--lib/diff/lcs/htmldiff.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diff/lcs/htmldiff.rb b/lib/diff/lcs/htmldiff.rb
index 56b972c..8b79994 100644
--- a/lib/diff/lcs/htmldiff.rb
+++ b/lib/diff/lcs/htmldiff.rb
@@ -115,8 +115,8 @@ h1 { margin-left: 2em; }
formatter = Text::Format.new
formatter.tabstop = @options[:expand_tabs]
- @left = left.map { |line| formatter.expand(line.chomp) }
- @right = right.map { |line| formatter.expand(line.chomp) }
+ @left.map! { |line| formatter.expand(line.chomp) }
+ @right.map! { |line| formatter.expand(line.chomp) }
end
@left.map! { |line| CGI.escapeHTML(line.chomp) }