OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139c4c2
)
fix diff bug with utf-8
author
Saito
<saitowu@gmail.com>
Fri, 18 Nov 2011 12:16:59 +0000
(20:16 +0800)
committer
Saito
<saitowu@gmail.com>
Fri, 18 Nov 2011 12:16:59 +0000
(20:16 +0800)
app/views/commits/_text_file.html.haml
patch
|
blob
|
history
diff --git
a/app/views/commits/_text_file.html.haml
b/app/views/commits/_text_file.html.haml
index
cb54299
..
bdc740b
100644
(file)
--- 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/)