From 6a26794c86faaea89b2e1badf5fd3d180281ce1d Mon Sep 17 00:00:00 2001 From: "dalia.florinda" Date: Thu, 22 Jan 2026 11:43:49 +0100 Subject: [PATCH] fix excel version --- src/components/MarkdownViewer.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/MarkdownViewer.vue b/src/components/MarkdownViewer.vue index ea499bc..0850a69 100644 --- a/src/components/MarkdownViewer.vue +++ b/src/components/MarkdownViewer.vue @@ -647,13 +647,13 @@ export default { const cells = row.querySelectorAll('th, td'); const rowData = Array.from(cells).map((cell) => { let text = cell.textContent.trim(); - // Escape quotes and wrap in quotes if contains comma - if (text.includes(',') || text.includes('"') || text.includes('\n')) { + // Escape quotes and wrap in quotes if contains semicolon, quotes or newlines + if (text.includes(';') || text.includes('"') || text.includes('\n')) { text = '"' + text.replace(/"/g, '""') + '"'; } return text; }); - csv += rowData.join(',') + '\n'; + csv += rowData.join(';') + '\n'; }); // Add UTF-8 BOM for proper character encoding