From 232dad66d10da0588344228ec877dfea999218fe Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 19 Feb 2023 21:34:37 +0100 Subject: [PATCH] trim imported text --- src/services/import/zip.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/import/zip.js b/src/services/import/zip.js index fea3cfb50..1f8a3b8e9 100644 --- a/src/services/import/zip.js +++ b/src/services/import/zip.js @@ -325,6 +325,9 @@ async function importZip(taskContext, fileBuffer, importRootNote) { content = content.replace(new RegExp(link.value, "g"), getNewNoteId(link.value)); } } + + content = content.trim(); + return content; }