Textsystem: Bis-Strich mit Leerzeichen (Zahl – Zahl) per Agent-Sweep
562 Ersetzungen in 50 Dateien: Halbgeviertstrich zwischen zwei Ziffern (= "bis"-Bereich) bekommt Leerzeichen davor/danach (3–4 -> 3 – 4). Regex /([0-9])\s*–\s*(?=[0-9])/ auf Rohtext (format-erhaltend, CRLF/Einrueckung unveraendert), Bindestriche in Woertern und Minuszeichen unangetastet, alle JSON weiter gueltig. Energiemanager-Zeitbloecke sind Display-Labels (kein Logik-Key) -> safe. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -259,7 +259,7 @@
|
||||
<div id="info-panel">
|
||||
<div class="info-row"><span class="info-label">Magma-Art</span><span class="info-value" id="magma-type">BASALTISCH</span></div>
|
||||
<div class="info-row"><span class="info-label">Eruptionstyp</span><span class="info-value" id="eruption-type">EFFUSIV</span></div>
|
||||
<div class="info-row"><span class="info-label">Explosivität (VEI)</span><span class="info-value" id="vei">0–1</span></div>
|
||||
<div class="info-row"><span class="info-label">Explosivität (VEI)</span><span class="info-value" id="vei">0 – 1</span></div>
|
||||
<div id="expl-bar"><div id="expl-fill" style="width:15%"></div></div>
|
||||
</div>
|
||||
|
||||
@@ -2965,11 +2965,11 @@ function eruptionStyle(expl, water) {
|
||||
}
|
||||
function vei(expl) {
|
||||
if (expl < 0.10) return '0';
|
||||
if (expl < 0.25) return '1–2';
|
||||
if (expl < 0.45) return '2–3';
|
||||
if (expl < 0.65) return '3–4';
|
||||
if (expl < 0.85) return '4–5';
|
||||
return '5–6';
|
||||
if (expl < 0.25) return '1 – 2';
|
||||
if (expl < 0.45) return '2 – 3';
|
||||
if (expl < 0.65) return '3 – 4';
|
||||
if (expl < 0.85) return '4 – 5';
|
||||
return '5 – 6';
|
||||
}
|
||||
|
||||
function didactic() {
|
||||
|
||||
Reference in New Issue
Block a user