diff --git a/src/importers/ofx1.ts b/src/importers/ofx1.ts index 749c16d..3149104 100644 --- a/src/importers/ofx1.ts +++ b/src/importers/ofx1.ts @@ -73,8 +73,8 @@ function getNodeText(node: Node | null): string { } for (const child of node.childNodes) { - if (child.nodeType === Node.TEXT_NODE && child.nodeValue !== null && child.nodeValue.length > 0) { - return child.nodeValue; + if (child.nodeType === Node.TEXT_NODE && child.nodeValue !== null && child.nodeValue.trim().length > 0) { + return child.nodeValue.trim(); } if (child.nodeType === Node.ELEMENT_NODE) { break;