From 8a93113192cc5f8c22228dae2065c39c7fb8e6ed Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Sat, 9 Jan 2016 15:04:28 +0800
Subject: [PATCH] roll back a small change

---
 models/git_diff.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/models/git_diff.go b/models/git_diff.go
index b5483ffa60..1913ec46ea 100644
--- a/models/git_diff.go
+++ b/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
 		}