From 05276c5bea53a38df8a7fa1f1efb917f6e6fd587 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 6 Aug 2023 17:03:56 +0200 Subject: [PATCH] Our default for paste operation should preserve newlines. https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220061.html --- src/Text.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Text.cpp b/src/Text.cpp index 9dff2b37ab..9e5bf5ff75 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -4891,8 +4891,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (theClipboard().isInternal()) pasteFromStack(cur, bv->buffer().errorList("Paste"), 0); else if (theClipboard().hasTextContents()) { - if (pasteClipboardText(cur, bv->buffer().errorList("Paste"), - !cur.paragraph().parbreakIsNewline(), + if (pasteClipboardText(cur, bv->buffer().errorList("Paste"), 0, Clipboard::AnyTextType)) tryGraphics = false; } -- 2.39.5