From 65c670acc017b9f3ef14bd69409c234f7f1ff8c3 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Wed, 14 Feb 2018 23:19:53 +0100 Subject: [PATCH] Do not escape single cell data in clipboard copy For single cell without-headers copy it is better to not escape the text since there isn't any gain in trying to escape quotes, end-of-lines or tabs. Escaping should only be done for table like data for compatibility to spreadsheets applications. See issue #1244. --- src/ExtendedTableWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExtendedTableWidget.cpp b/src/ExtendedTableWidget.cpp index 1ed5663b..9ed7e11b 100644 --- a/src/ExtendedTableWidget.cpp +++ b/src/ExtendedTableWidget.cpp @@ -265,8 +265,8 @@ void ExtendedTableWidget::copy(const bool withHeaders) return; } - // The field isn't empty. Quote data as needed and copy it to the clipboard - qApp->clipboard()->setText(escapeCopiedData(data.toByteArray())); + // The field isn't empty. Copy the text to the clipboard without quoting (for general plain text clipboard) + qApp->clipboard()->setText(data.toByteArray()); return; } }