Browse Source

roll back a small change

pull/2010/head
Unknwon 9 years ago committed by Thomas Boerger
parent
commit
7b8c3dd6fd
  1. 3
      models/git_diff.go

3
models/git_diff.go

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

Loading…
Cancel
Save