code cleanup (#12641)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11546 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-03-07 08:47:38 +00:00
parent b19a6d06d9
commit 0d141eef32
1 changed files with 2 additions and 3 deletions

View File

@ -28,9 +28,8 @@ module Redmine
lines = 0
@truncated = false
diff_table = DiffTable.new(diff_type, diff_style)
diff.each do |line|
line_encoding = nil
line = Redmine::CodesetUtil.to_utf8_by_setting(line)
diff.each do |line_raw|
line = Redmine::CodesetUtil.to_utf8_by_setting(line_raw)
unless diff_table.add_line(line)
self << diff_table if diff_table.length > 0
diff_table = DiffTable.new(diff_type, diff_style)