Skip to content

Commit 6e1c072

Browse files
authored
Update routers/web/repo/pull.go
1 parent b1c2294 commit 6e1c072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ func CompareAndPullRequestPost(ctx *context.Context) {
10421042
}
10431043

10441044
if len(form.Title) > 255 {
1045-
form.Content = "..." + form.Title[252:] + "\n\n" + form.Content
1045+
form.Content = "" + form.Title[254:] + "\n\n" + form.Content
10461046
form.Title = form.Title[:252] + "..."
10471047
}
10481048
middleware.AssignForm(form, ctx.Data)

0 commit comments

Comments
 (0)