1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Replace newlines in plugin changelogs with the proper HTML tag

This commit is contained in:
MrTimscampi 2021-06-15 00:25:25 +02:00
parent 8b72fa0c3e
commit 269ea2ad55

View file

@ -13,7 +13,7 @@ function populateHistory(packageInfo, page) {
for (let i = 0; i < length; i++) {
const version = packageInfo.versions[i];
html += '<h2 style="margin:.5em 0;">' + version.version + '</h2>';
html += '<div style="margin-bottom:1.5em;">' + version.changelog + '</div>';
html += '<div style="margin-bottom:1.5em;">' + version.changelog.replace(/(?:\r\n|\r|\n)/g, '<br>') + '</div>';
}
$('#revisionHistory', page).html(html);