@@ -28,9 +28,8 module Redmine | |||||
28 | lines = 0 |
|
28 | lines = 0 | |
29 | @truncated = false |
|
29 | @truncated = false | |
30 | diff_table = DiffTable.new(diff_type, diff_style) |
|
30 | diff_table = DiffTable.new(diff_type, diff_style) | |
31 | diff.each do |line| |
|
31 | diff.each do |line_raw| | |
32 | line_encoding = nil |
|
32 | line = Redmine::CodesetUtil.to_utf8_by_setting(line_raw) | |
33 | line = Redmine::CodesetUtil.to_utf8_by_setting(line) |
|
|||
34 | unless diff_table.add_line(line) |
|
33 | unless diff_table.add_line(line) | |
35 | self << diff_table if diff_table.length > 0 |
|
34 | self << diff_table if diff_table.length > 0 | |
36 | diff_table = DiffTable.new(diff_type, diff_style) |
|
35 | diff_table = DiffTable.new(diff_type, diff_style) |
General Comments 0
You need to be logged in to leave comments.
Login now