Bug 157605 - Table rows are split into several lines when copying the table from Writer to a plain text program
Summary: Table rows are split into several lines when copying the table from Writer to...
Status: RESOLVED DUPLICATE of bug 144576
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables Cut-Copy
  Show dependency treegraph
 
Reported: 2023-10-04 19:06 UTC by libreoffice
Modified: 2023-10-20 09:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample (11.34 KB, application/vnd.oasis.opendocument.text)
2023-10-04 19:07 UTC, libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***