Commit 139c4c2f181719f61e7b27ba23df6c065d795f2a

Authored by Saito
1 parent 26bdeb21

fix diff bug

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/views/commits/_text_file.html.haml
... ... @@ -2,6 +2,7 @@
2 2 - line_new = 0
3 3 - lines_arr = diff.diff.lines.to_a
4 4 - lines_arr.each do |line|
  5 + - line = line.force_encoding(Encoding::UTF_8)
5 6 - next if line.match(/^--- \/dev\/null/)
6 7 - next if line.match(/^--- a/)
7 8 - next if line.match(/^\+\+\+ b/)
... ...