From 83a9e85d3d10a99982dedf8132d5f82b77ae48e8 Mon Sep 17 00:00:00 2001 From: hazycora Date: Thu, 3 Aug 2023 00:57:43 -0500 Subject: [PATCH] trim before adding ellipsis --- views/issue.eta | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/issue.eta b/views/issue.eta index 8d7ebc3..0578738 100644 --- a/views/issue.eta +++ b/views/issue.eta @@ -3,12 +3,12 @@ let title = it.issue.title const titleCharLimit = 50 if (title.length > titleCharLimit) { - title = title.slice(0, titleCharLimit) + '...' + title = title.slice(0, titleCharLimit).trim() + '...' } let body = it.issue.body const bodyCharLimit = 50 if (body.length > bodyCharLimit) { - body = body.slice(0, bodyCharLimit) + '...' + body = body.slice(0, bodyCharLimit).trim() + '...' } %>