Skip to content

Commit b1c2294

Browse files
committed
use ellipsis …
Signed-off-by: Andrew Thornton <[email protected]>
1 parent b559b3d commit b1c2294

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/web/repo/compare.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,11 @@ func PrepareCompareDiff(
569569
}
570570
if len(title) > 255 {
571571
if ctx.Data["content"] != nil {
572-
ctx.Data["content"] = fmt.Sprintf("...%s\n\n%s", title[252:], ctx.Data["content"])
572+
ctx.Data["content"] = fmt.Sprintf("%s\n\n%s", title[254:], ctx.Data["content"])
573573
} else {
574-
ctx.Data["content"] = "..." + title[252:] + "\n"
574+
ctx.Data["content"] = "" + title[254:] + "\n"
575575
}
576-
title = title[:252] + "..."
576+
title = title[:254] + ""
577577
}
578578

579579
ctx.Data["title"] = title

0 commit comments

Comments
 (0)