From 27cbd47a8087d03043d1af6367a5de73c0c3147b Mon Sep 17 00:00:00 2001 From: Smittix Date: Mon, 5 Jan 2026 08:19:31 +0000 Subject: [PATCH] Fix CSV export bug (fixes #30) - Fix escaped newline in CSV export causing literal \n in output - Clear allMessages array when clearing messages so CSV/JSON exports reflect current data after clearing --- templates/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index c071110..8085b00 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2118,7 +2118,7 @@ ]; csv.push(row.join(',')); }); - downloadFile(csv.join('\\n'), 'intercept_messages.csv', 'text/csv'); + downloadFile(csv.join('\n'), 'intercept_messages.csv', 'text/csv'); } function exportJSON() { @@ -2682,6 +2682,7 @@ pocsagCount = 0; flexCount = 0; sensorCount = 0; + allMessages = []; uniqueDevices.clear(); document.getElementById('msgCount').textContent = '0'; document.getElementById('pocsagCount').textContent = '0';