[LyX/master] Our default for paste operation should preserve newlines.
Pavel Sanda
sanda at lyx.org
Sun Aug 6 13:51:10 UTC 2023
commit 05276c5bea53a38df8a7fa1f1efb917f6e6fd587
Author: Pavel Sanda <sanda at lyx.org>
Date: Sun Aug 6 17:03:56 2023 +0200
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 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 9dff2b3..9e5bf5f 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;
}
More information about the lyx-cvs
mailing list