Skip to content

Commit 13583a6

Browse files
eldiabolozlafriks
authored andcommitted
fix syntax highlight in blame view #6895 (#6909)
1 parent ce8de35 commit 13583a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/blame.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func renderBlame(ctx *context.Context, blameParts []models.BlamePart, commitName
236236

237237
//Code line
238238
line = gotemplate.HTMLEscapeString(line)
239-
if i != len(lines) {
239+
if i != len(lines)-1 {
240240
line += "\n"
241241
}
242242
if len(part.Lines)-1 == index && len(blameParts)-1 != pi {

0 commit comments

Comments
 (0)