diff --git a/main.js b/main.js index 789ce9c..22f80ea 100644 --- a/main.js +++ b/main.js @@ -502,9 +502,9 @@ async function readEventsInternal(page, now) { // single line for better readability. const compactDateTime = (s) => s.replace(/( |20\d\d)/g, '').replace(/-/g, '‑'); const descriptionHTML = - '' + compactDateTime(td.innerText) + '*' + compactDateTime(td.innerText) + ' ' + compactDateTime(td.nextSibling.innerText) - + '' + td.nextSibling.nextSibling.innerText + ''; + + '' + td.nextSibling.nextSibling.innerText + ''; return { ts: ts, descriptionHTML: descriptionHTML, @@ -548,10 +548,17 @@ async function readEvents(page, previousHashes, emails) { return; } let emailHTML = 'Bevorstehende Termine' - + '' + + '' + '

Termine in den nächsten ' + CONFIG.options.eventLookaheadDays + ' Tagen

'; - upcomingEvents.forEach(e => emailHTML += e.descriptionHTML); + upcomingEvents.forEach(e => emailHTML += + '' + e.descriptionHTML + ''); emailHTML += '
'; const doStudent = !!CONFIG.options.emailToStudent; let emailsLeft = doStudent ? 2 : 1;