From 4fd7ff37d858893bd7cfea571903423f78b45177 Mon Sep 17 00:00:00 2001 From: Dario Baumberger Date: Mon, 5 Feb 2024 23:49:52 +0100 Subject: [PATCH] append on new line --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 5d80d1f..4679c53 100644 --- a/src/main.ts +++ b/src/main.ts @@ -146,7 +146,7 @@ export default class ImageToTextOcrPlugin extends Plugin { loadingNotice.hide(); - editor.replaceSelection(`${selection}${result}`); + editor.replaceSelection(`${selection}\n${result}`); } catch (error) { console.error(error); new Notice(error); @@ -191,7 +191,7 @@ export default class ImageToTextOcrPlugin extends Plugin { loadingNotice.hide(); editor.replaceSelection( - `${selection}${result}` + `${selection}\n${result}` ); } ).open();