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

tokarchuk/v1.17
iliyan ivanov 6 years ago committed by Lauris BH
parent ce8de35334
commit 13583a650f
  1. 2
      routers/repo/blame.go

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

Loading…
Cancel
Save