fix: Zeilenumbrüche nach ↵-Symbolen korrigieren
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
parent
a2106d067d
commit
8cf2f77e62
2 changed files with 4 additions and 4 deletions
|
|
@ -163,7 +163,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
} else if (currentChar === '\t') {
|
||||
highlightedText += '<span class="highlight-correct highlight-tab">→</span>';
|
||||
} else if (currentChar === '\n') {
|
||||
highlightedText += '<span class="highlight-correct highlight-newline">↵</span>';
|
||||
highlightedText += '<span class="highlight-correct highlight-newline">↵</span><br>';
|
||||
} else {
|
||||
highlightedText += `<span class="highlight-correct">${currentChar}</span>`;
|
||||
}
|
||||
|
|
@ -174,7 +174,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
} else if (currentChar === '\t') {
|
||||
highlightedText += '<span class="highlight-incorrect highlight-tab">→</span>';
|
||||
} else if (currentChar === '\n') {
|
||||
highlightedText += '<span class="highlight-incorrect highlight-newline">↵</span>';
|
||||
highlightedText += '<span class="highlight-incorrect highlight-newline">↵</span><br>';
|
||||
} else {
|
||||
highlightedText += `<span class="highlight-incorrect">${currentChar}</span>`;
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
} else if (currentChar === '\t') {
|
||||
highlightedText += '<span class="highlight-tab">→</span>';
|
||||
} else if (currentChar === '\n') {
|
||||
highlightedText += '<span class="highlight-newline">↵</span>';
|
||||
highlightedText += '<span class="highlight-newline">↵</span><br>';
|
||||
} else {
|
||||
highlightedText += currentChar;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<!-- Textanzeige -->
|
||||
<div class="mb-4">
|
||||
<h5 class="card-title">Vorlage: <span id="lesson-title">{{ current_lesson_title }}</span></h5>
|
||||
<div id="target-text" class="border p-3 bg-white rounded" style="white-space: pre-line; font-family: monospace;">
|
||||
<div id="target-text" class="border p-3 bg-white rounded" style="white-space: pre-wrap; font-family: monospace;">
|
||||
{{ current_text|safe }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue