From 269ea2ad55cf635eea1fc84472c56ae3c8850b42 Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Tue, 15 Jun 2021 00:25:25 +0200 Subject: [PATCH] Replace newlines in plugin changelogs with the proper HTML tag --- src/controllers/dashboard/plugins/add/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/dashboard/plugins/add/index.js b/src/controllers/dashboard/plugins/add/index.js index 007a2d8410..2608ff7bf5 100644 --- a/src/controllers/dashboard/plugins/add/index.js +++ b/src/controllers/dashboard/plugins/add/index.js @@ -13,7 +13,7 @@ function populateHistory(packageInfo, page) { for (let i = 0; i < length; i++) { const version = packageInfo.versions[i]; html += '

' + version.version + '

'; - html += '
' + version.changelog + '
'; + html += '
' + version.changelog.replace(/(?:\r\n|\r|\n)/g, '
') + '
'; } $('#revisionHistory', page).html(html);