diff options
author | iliyan ivanov <iliyan87.ivanov@gmail.com> | 2019-05-11 23:27:39 +0300 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-05-11 23:27:39 +0300 |
commit | 13583a650f1c32c850413684a4ac835804b22270 (patch) | |
tree | 63b5eb9a86d37eb09d7455ac75f31ec3d975c440 /routers | |
parent | ce8de3533485eed0c56059d6334a5031a73eed67 (diff) | |
download | gitea-13583a650f1c32c850413684a4ac835804b22270.tar.gz gitea-13583a650f1c32c850413684a4ac835804b22270.zip |
fix syntax highlight in blame view #6895 (#6909)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/blame.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |