diff --git a/renderer/src/parser/Parser.ts b/renderer/src/parser/Parser.ts index 9082beaa..80f1fcd7 100644 --- a/renderer/src/parser/Parser.ts +++ b/renderer/src/parser/Parser.ts @@ -112,7 +112,9 @@ export function parseClipboard (clipboard: string): Result { function itemTextToSections (text: string) { const lines = text.split(/\r?\n/) - lines.pop() + if (lines[lines.length - 1] === '') { + lines.pop() + } const sections: string[][] = [[]] lines.reduce((section, line) => {