From 50268cb1850728fbc69503e7466bab06da40af4b Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Wed, 22 Jul 2026 20:05:45 +0200 Subject: [PATCH] fix: append large page text safely --- src/onenote/one/section.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/onenote/one/section.ts b/src/onenote/one/section.ts index c9d8b7e..b5186e7 100644 --- a/src/onenote/one/section.ts +++ b/src/onenote/one/section.ts @@ -188,8 +188,9 @@ function parsePage(context: OneContext, space: ObjectSpace): PageWithTextDto { const bodyParagraphs: string[] = []; for (const contentId of contentIds) { - bodyParagraphs.push( - ...extractGraphTextSafely(context, space, contentId, 'page content') + appendItems( + bodyParagraphs, + extractGraphTextSafely(context, space, contentId, 'page content') ); } let text = bodyParagraphs