diff --git a/legend.js b/legend.js index 1063cab..93d4fe8 100644 --- a/legend.js +++ b/legend.js @@ -278,7 +278,7 @@ async function setLastUpdateData(){ }; let updateDate = new Date(commits[0].commit.author.date); lastUpdateElement.innerHTML = `${Utils.formattedTimeBetweenDates(new Date(), updateDate)} ${new Date() >= updateDate ? 'ago' : 'from now'}`; - document.getElementById('changelog').innerHTML = commits[0].commit.message.replace('\n','
'); + document.getElementById('changelog').innerHTML = commits[0].commit.message.replaceAll(/\n+/g, '\n').replaceAll('\n','
'); if(pageLoadUpdateDate == null){ pageLoadUpdateDate = updateDate; }else{