Skip to content

Commit

Permalink
Add "..." after the end of description
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy <sandy@sandyuraz.com>
  • Loading branch information
thecsw committed Jan 17, 2023
1 parent f405332 commit 2effa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emilia/description.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func GetDescription(page *yunyun.Page, length int) string {
}

cleanText := yunyun.RemoveFormatting(paragraph[:gana.Min(len(paragraph), length+10)])
description = cleanText[:gana.Max(len(cleanText)-10, 0)]
description = cleanText[:gana.Max(len(cleanText)-10, 0)] + "..."

break
}
Expand Down

0 comments on commit 2effa9c

Please sign in to comment.