From 38260814cbe5f3489956a92f3c1d8ca688792ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Fernandez?= Date: Thu, 18 Sep 2025 09:44:34 +0200 Subject: [PATCH] Extract text inside a text:a tag --- scripts/shared.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/shared.js b/scripts/shared.js index ba3b9ed..a5aba9b 100644 --- a/scripts/shared.js +++ b/scripts/shared.js @@ -18,7 +18,6 @@ const TEXT_NODE = 3 function extraxtODSCellText(cell) { let text = ''; const childNodes = cell.childNodes; - for (const child of Array.from(childNodes)) { if (child.nodeType === TEXT_NODE) { // Direct text node, append the text directly @@ -34,6 +33,8 @@ function extraxtODSCellText(cell) { text += pChild.nodeValue; // Append text inside } else if (pChild.nodeName === 'text:line-break') { text += '\n'; // Append newline for + } else if (pChild.nodeName === 'text:a') { + text += pChild.nodeName } } } else if (child.nodeName === 'text:line-break') {