From: Pavel Sanda Date: Sun, 6 Aug 2023 15:03:56 +0000 (+0200) Subject: Our default for paste operation should preserve newlines. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=05276c5bea53a38df8a7fa1f1efb917f6e6fd587;p=features.git Our default for paste operation should preserve newlines. https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220061.html --- 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; }