mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 15:44:16 +01:00
roll back a small change
This commit is contained in:
parent
86bce4a2ae
commit
8a93113192
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue