Fixed encoding issue for diff. Reordered merge request commits
This commit is contained in:
parent
65e4ad3147
commit
ef396d08fc
3 changed files with 8 additions and 4 deletions
|
@ -58,7 +58,7 @@ module CommitsHelper
|
|||
next if line.match(/^\-\-\- a/)
|
||||
next if line.match(/^\+\+\+ b/)
|
||||
|
||||
full_line = html_escape(line.gsub(/\n/, ''))
|
||||
full_line = html_escape(line.gsub(/\n/, '')).force_encoding("UTF-8")
|
||||
|
||||
if line.match(/^@@ -/)
|
||||
next if line_old == 1 && line_new == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue