Skip to content

Commit

Permalink
fix(routes/nhk/news): fix \n not totally replaced to <br> (#18215)
Browse files Browse the repository at this point in the history
  • Loading branch information
cscnk52 authored Jan 25, 2025
1 parent 4d3b580 commit bffd40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/nhk/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const route: Route = {
},
],
name: 'WORLD-JAPAN - Top Stories',
maintainers: ['TonyRL', 'pseudoyu'],
maintainers: ['TonyRL', 'pseudoyu', 'cscnk52'],
handler,
};

Expand All @@ -82,7 +82,7 @@ async function handler(ctx) {
item.category = Object.values(data.data.categories);
item.description = art(path.join(__dirname, 'templates/news.art'), {
img: data.data.thumbnails,
description: data.data.detail.replace('\n\n', '<br><br>'),
description: data.data.detail.replaceAll('\n\n', '<br><br>'),
});
delete item.id;
return item;
Expand Down

0 comments on commit bffd40c

Please sign in to comment.