From 13583a650f1c32c850413684a4ac835804b22270 Mon Sep 17 00:00:00 2001 From: iliyan ivanov Date: Sat, 11 May 2019 23:27:39 +0300 Subject: [PATCH] fix syntax highlight in blame view #6895 (#6909) --- routers/repo/blame.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/blame.go b/routers/repo/blame.go index 679b99a15e..964fdc8746 100644 --- a/routers/repo/blame.go +++ b/routers/repo/blame.go @@ -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 {