summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Friedgan <hubrix+github@gmail.com>2013-12-22 00:22:33 -0600
committerMark Friedgan <hubrix+github@gmail.com>2013-12-22 00:22:33 -0600
commitc458ef52827bf8a469d526c2b6dd7e402a71dda7 (patch)
tree368b45800b645c152fffde7be7e67c82a7341e5c
parent704bc2c0000b5f9bf49d607dcd0d3989b63b2595 (diff)
downloaddiff-lcs-c458ef52827bf8a469d526c2b6dd7e402a71dda7.tar.gz
Update htmldiff.rb
expand tabs is broken otherwise and the code is inconsistent anyway
-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) }