[Libreoffice-bugs] [Bug 113571] Copy of cell with multi-line text is pasted as CSV for unformatted text, enclosed in double quotes and with quote escaping (FORMATTING)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 10 19:08:42 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=113571

--- Comment #4 from Eike Rathke <erack at redhat.com> ---
So apparently this is related to the fix for bug 32213 where
https://cgit.freedesktop.org/libreoffice/calc/commit/?id=cdcd262ea4aa3c3e407b14ed533e514f75de2d3a
in ScTransferObj::GetData() constructs the ScExportTextOptions with
mbAddQuotes=true to maintain line breaks and proper cell distribution. That is
some internal "unformatted (but CSV-like)" text and probably the reason that
MS-Office does it similar.
You can't have both behaviour in one format.

The only solution is to offer two text variants to the clipboard and/or,
depending on the consumer, generate one or the other, if that is possible. The
problem here is that for non-in-cell paste the existing quoted format is
needed, but for in-cell or external unformatted paste the non-quoted format is
needed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171110/ff7f975d/attachment-0001.html>


More information about the Libreoffice-bugs mailing list