diff options
author | Unknwon <u@gogs.io> | 2016-01-09 15:04:28 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-09 15:04:28 +0800 |
commit | 8a93113192cc5f8c22228dae2065c39c7fb8e6ed (patch) | |
tree | 7b08a5e55806d44440ac45de9c9ddcd4051e42bf /models | |
parent | 86bce4a2ae9915fad63c742cb68fcd0a5e64a223 (diff) | |
download | gitea-8a93113192cc5f8c22228dae2065c39c7fb8e6ed.tar.gz gitea-8a93113192cc5f8c22228dae2065c39c7fb8e6ed.zip |
roll back a small change
Diffstat (limited to 'models')
-rw-r--r-- | models/git_diff.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |