summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaito <saitowu@gmail.com>2011-11-18 20:16:59 +0800
committerSaito <saitowu@gmail.com>2011-11-18 20:16:59 +0800
commit4281704fb3d93fd641643e0eab1e388254c71f96 (patch)
treed8bcad4226f3e46b1c1446f4abb01b764be37baa
parent139c4c2f181719f61e7b27ba23df6c065d795f2a (diff)
downloadgitlab-ce-4281704fb3d93fd641643e0eab1e388254c71f96.tar.gz
fix diff bug with utf-8
-rw-r--r--app/views/commits/_text_file.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml
index cb54299a772..bdc740b3952 100644
--- a/app/views/commits/_text_file.html.haml
+++ b/app/views/commits/_text_file.html.haml
@@ -2,7 +2,7 @@
- line_new = 0
- lines_arr = diff.diff.lines.to_a
- lines_arr.each do |line|
- - line = line.force_encoding(Encoding::UTF_8)
+ - line.force_encoding(Encoding::UTF_8)
- next if line.match(/^--- \/dev\/null/)
- next if line.match(/^--- a/)
- next if line.match(/^\+\+\+ b/)