Replace \n with ,

This commit is contained in:
2023-09-12 11:09:48 +02:00
parent 9e51bb6ac0
commit 0be5f88c3b

View File

@@ -146,7 +146,8 @@ async function getUntis(weekDate) {
} else {
if (!teachingContent.includes(entry.teachingContent)) {
if (teachingContent != "") teachingContent += '\n';
teachingContent += "- " + entry.teachingContent;
teachingStr = entry.teachingContent.replace('\n', ', ');
teachingContent += "- " + teachingStr;
}
if (subjectsWithoutTeachingContent.includes(entry.subject.displayName)) {