From 7094ea47e6a85e3eab2acd389bc574dfab9a44eb Mon Sep 17 00:00:00 2001 From: iliyan ivanov Date: Sat, 11 May 2019 18:50:02 +0300 Subject: [PATCH] fix syntax highlight in blame view #6895 --- 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 679b99a15e874..964fdc8746a22 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 {