diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index 58556deab2..ef9dcc3930 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.go @@ -420,7 +420,7 @@ func DiffPreviewPost(ctx *context.Context) { } if diff.NumFiles == 0 { - ctx.PlainText(http.StatusOK, `
` + ctx.Locale.TrString("repo.editor.no_changes_to_show") + `
`) + ctx.PlainText(http.StatusOK, `
`+ctx.Locale.TrString("repo.editor.no_changes_to_show")+`
`) return } ctx.Data["File"] = diff.Files[0]