Skip to content

Commit

Permalink
Merge pull request #84 from QWxleA/master
Browse files Browse the repository at this point in the history
Update template.ts - trim extra spaces
  • Loading branch information
sywhb authored Jun 19, 2023
2 parents 38c00df + 9d29a0d commit a349026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ export const renderArticleContnet = async (
article.siteName || siteNameFromUrl(article.originalArticleUrl);
const publishedAt = article.publishedAt;
const datePublished = publishedAt
? formatDate(publishedAt, dateSavedFormat)
? formatDate(publishedAt, dateSavedFormat).trim()
: undefined;
const articleNote = article.highlights?.find(
(h) => h.type === HighlightType.Note
);
const dateRead = article.readAt
? formatDate(article.readAt, dateSavedFormat)
? formatDate(article.readAt, dateSavedFormat).trim()
: undefined;
const wordsCount = article.wordsCount;
const readLength = wordsCount
Expand Down

0 comments on commit a349026

Please sign in to comment.