Bug 163762 - Can't paste multiple lines as table rows
Summary: Can't paste multiple lines as table rows
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Writer-Tables
  Show dependency treegraph
 
Reported: 2024-11-04 15:30 UTC by Eyal Rozenberg
Modified: 2024-11-07 07:20 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-11-04 15:30:58 UTC
When I paste multiple lines from clipboard into a table, I often want each line to go on its own (let's say pre-existing) row in the column where I've pasted.

This is not the default paste behavior, and it is also not a behavior you can achieve using Paste Special.

Well, it should definitely be one of the behaviors we can get with paste special; and as for the default behavior, perhaps when there are newlines in the pasted content, and it is plain text, Writer should ask me whether I want everything in a sinal cell or cell-per-text-line.
Comment 1 Frank Myers 2024-11-05 05:06:24 UTC Comment hidden (spam)
Comment 2 Heiko Tietze 2024-11-05 07:50:05 UTC
Duplicate of bug 163305: you cannot copy/paste non-contiguous cells in Calc.
Comment 3 Eyal Rozenberg 2024-11-05 08:06:46 UTC
(In reply to Heiko Tietze from comment #2)
> Duplicate of bug 163305: you cannot copy/paste non-contiguous cells in Calc.

1. The pasted content is text, not table rows/lines.
2. The resulting range of cells _is_ contiguous.
Comment 4 Heiko Tietze 2024-11-05 08:51:34 UTC
Please add an example.
Comment 5 Eyal Rozenberg 2024-11-05 19:22:30 UTC
(In reply to Heiko Tietze from comment #4)
> Please add an example.

Reproduction instructions:

1. Create a new Writer document.
2. Insert a table with, say, at least 3 rows.
3. Copy a three-line piece of text into the keyboard, e.g.:

One
Two
Three but stop at the end of this line

4. Place the cursor in a table cell on the first row
5. On the menus, choose Edit > Paste Special > Paste Special... 

Expected result:
You get an option to paste each line of text into a different table row in the same column.

Actual result:
You can only paste all three rows into the cell you're in.
Comment 6 Heiko Tietze 2024-11-06 07:27:02 UTC
I vaguely remember it has been as requested.

Meanwhile you may use the text-to-table feature.
Comment 7 steve 2024-11-06 12:30:52 UTC
This was tagged regression in 25.2.0.0 alpha, but in 24.8.2.1 I am seeing identical behavior.

Which exact version of LibreOffice behaves differently to make this a regression?

And if this is not a regression isn't what you are requesting an enhancement request?
Comment 8 Rafael Lima 2024-11-06 12:38:58 UTC
(In reply to steve from comment #7)
> And if this is not a regression isn't what you are requesting an enhancement
> request?

AFAIR this has never worked as requested by the OP. So I'd say this is a enhancement request, not a regression.

@Eyal, do you remember it ever working as you are requesting?
Comment 9 Eyal Rozenberg 2024-11-06 15:34:46 UTC
(In reply to Rafael Lima from comment #8)
> @Eyal, do you remember it ever working as you are requesting?

No, I don't believe Writer ever offered this functionality.

I do, however, consider it a bug in that the support for pasting text as multiple lines (and even columns) available in Calc is not available even in rudimentary form in Writer tables.

... and that analogy is perhaps also a possible alternative fix - a more maximalist one: offer the full text import dialog, as one of the Paste Special options when inside a table.
Comment 10 Eyal Rozenberg 2024-11-06 18:28:02 UTC
(In reply to Heiko Tietze from comment #6)
> Meanwhile you may use the text-to-table feature.

Not if I'm already in a table...
Comment 11 Heiko Tietze 2024-11-07 07:20:32 UTC
Which makes me remember what works: if you copy/paste table content, the target is fill repetitively meaning 1,2,3 filled into four rows results in 1,2,3,1. And into two 1,2, of course. Kind of prototype for plain text.