mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Merge pull request #2740 from MrTimscampi/changelog-newline
Replace newlines in plugin changelogs with the proper HTML tag
This commit is contained in:
commit
c7b05ba130
@ -13,7 +13,7 @@ function populateHistory(packageInfo, page) {
|
|||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
const version = packageInfo.versions[i];
|
const version = packageInfo.versions[i];
|
||||||
html += '<h2 style="margin:.5em 0;">' + version.version + '</h2>';
|
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);
|
$('#revisionHistory', page).html(html);
|
||||||
|
Loading…
Reference in New Issue
Block a user