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') {