Skip to content

Commit

Permalink
append on new line
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-baumberger committed Feb 5, 2024
1 parent 718c230 commit 4fd7ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -191,7 +191,7 @@ export default class ImageToTextOcrPlugin extends Plugin {
loadingNotice.hide();

editor.replaceSelection(
`${selection}${result}`
`${selection}\n${result}`
);
}
).open();
Expand Down

0 comments on commit 4fd7ff3

Please sign in to comment.