diff now no need to force_encoding to utf8

This commit is contained in:
Saito 2012-05-30 11:56:48 +08:00
parent 202807c21a
commit 34cc38b6f5

View file

@ -58,7 +58,7 @@ module CommitsHelper
next if line.match(/^\-\-\- a/) next if line.match(/^\-\-\- a/)
next if line.match(/^\+\+\+ b/) next if line.match(/^\+\+\+ b/)
full_line = html_escape(line.gsub(/\n/, '')).force_encoding("UTF-8") full_line = html_escape(line.gsub(/\n/, ''))
if line.match(/^@@ -/) if line.match(/^@@ -/)
type = "match" type = "match"