]> source.dussan.org Git - gitea.git/commitdiff
fix syntax highlight in blame view #6895 (#6909)
authoriliyan ivanov <iliyan87.ivanov@gmail.com>
Sat, 11 May 2019 20:27:39 +0000 (23:27 +0300)
committerLauris BH <lauris@nix.lv>
Sat, 11 May 2019 20:27:39 +0000 (23:27 +0300)
routers/repo/blame.go

index 679b99a15e87426d8a70dea5924ce9f796df6f7b..964fdc8746a22c1359957cd379ca5e783480c9cb 100644 (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 {