Skip to content

Commit

Permalink
fix syntax highlight in blame view go-gitea#6895
Browse files Browse the repository at this point in the history
  • Loading branch information
eldiaboloz committed May 11, 2019
1 parent ce8de35 commit 7094ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/blame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7094ea4

Please sign in to comment.