Explorar o código

roll back a small change

Unknwon %!s(int64=8) %!d(string=hai) anos
pai
achega
8a93113192
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      models/git_diff.go

+ 2 - 1
models/git_diff.go

@@ -118,9 +118,10 @@ func (diffSection *DiffSection) ComputeLinesDiff() {
 		var compareDiffLine *DiffLine
 		var diff1, diff2 string
 
+		diffLine.ParsedContent = template.HTML(html.EscapeString(diffLine.Content[1:]))
+
 		// just compute diff for adds and removes
 		if diffLine.Type != DIFF_LINE_ADD && diffLine.Type != DIFF_LINE_DEL {
-			diffLine.ParsedContent = template.HTML(html.EscapeString(diffLine.Content[1:]))
 			continue
 		}