浏览代码

roll back a small change

Unknwon 8 年之前
父节点
当前提交
8a93113192
共有 1 个文件被更改,包括 2 次插入1 次删除
  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
 		}