You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aa2aa13
Browse filesBrowse the repository at this point in the historyBrowse files
//non-NULL data is enquoted in plain text format, whilst NULL isn't
277
-
//TODO: Do we really want to do this for the non-internal buffer case? The only case where we should definitely quote the data is when there are line breaks
278
-
// in the text, again for spreadsheet compatability. We also need to quote when there are tabs in the string (or replace the tabs by spaces, that's what
279
-
//LibreOffice seems to be doing here).
280
+
//Empty string is enquoted in plain text format, whilst NULL isn't
281
+
//We also quote the data when there are line breaks in the text, again for spreadsheet compatability.
282
+
// We also need to quote when there are tabs in the string (another option would be to replace the tabs by spaces, that's what
283
+
// LibreOffice seems to be doing here).
280
284
if (!data.isNull()) {
281
-
text.replace("\"", "\"\"");
282
-
result.append(QString("\"%1\"").arg(text));
285
+
if (text.isEmpty() || text.contains('\n') || text.contains('\t') || text.contains('"')) {
0 commit comments