1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-18 03:04:36 +01:00

fix syntax highlight in blame view #6895 (#6909)

This commit is contained in:
iliyan ivanov 2019-05-11 23:27:39 +03:00 committed by Lauris BH
parent ce8de35334
commit 13583a650f

@ -236,7 +236,7 @@ func renderBlame(ctx *context.Context, blameParts []models.BlamePart, commitName
//Code line
line = gotemplate.HTMLEscapeString(line)
if i != len(lines) {
if i != len(lines)-1 {
line += "\n"
}
if len(part.Lines)-1 == index && len(blameParts)-1 != pi {