Browse Source

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

for-closed-social
iliyan ivanov 5 years ago
committed by Lauris BH
parent
commit
13583a650f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/blame.go

+ 1
- 1
routers/repo/blame.go View File

@ -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 {

Loading…
Cancel
Save