Bug 157605

Summary: Table rows are split into several lines when copying the table from Writer to a plain text program
Product: LibreOffice Reporter: libreoffice
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: heiko.tietze, stephane.guillou
Priority: medium    
Version: Inherited From OOo   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=157827
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103100, 108844    
Attachments: Sample

Description libreoffice 2023-10-04 19:06:59 UTC
Description:
Each cell becomes a separate line.

Steps to Reproduce:
1. Open any document with a table (example file attached).
2. Copy the table to the clipboard.
3. Paste into another program, such as the text area on this site.

Actual Results:
It's inserted:

1
Line 1
2
Line 2

Expected Results:
1 Line 1
2 Line 2


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 50(Build:1)
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: ru-RU (en_US.UTF-8); UI: en-US
7.5.7-1
Calc: threaded
Comment 1 libreoffice 2023-10-04 19:07:11 UTC
Created attachment 190019 [details]
Sample
Comment 2 Stéphane Guillou (stragu) 2023-10-19 10:13:14 UTC
Same in OOo 3.3, so inherited.
Reproduced in recent trunk build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b83f069101f1e6d8aaac09a805f02bbc4c619e7a
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same table copied from OnlyOffice gives something close to the OP's expected results:

1	Line 1
2	Line 2

(I think the tab between columns is more sensible than a space)

This is the same as copy-pasting from Calc:

1	Line 1
2	Line 2

So, to me, it's sensible to make Writer tables behave the same as Calc when copy-pasted.
Comment 3 Stéphane Guillou (stragu) 2023-10-19 12:14:16 UTC
(can also be seen when pasting as unformatted text inside Writer)
Comment 4 Heiko Tietze 2023-10-20 09:05:29 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> (I think the tab between columns is more sensible than a space)
+1 (and I think it has a high priority), but not a new topic

*** This bug has been marked as a duplicate of bug 144576 ***