Bug 170173 - TABLES: on pasting copied material into a table cell, paragraph properties must not be copied
Summary: TABLES: on pasting copied material into a table cell, paragraph properties mu...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-30 18:33 UTC by Christian Lehmann
Modified: 2026-02-01 13:39 UTC (History)
2 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 Christian Lehmann 2025-12-30 18:33:26 UTC
Description:
I format a paragraph with a style, e.g. as a numbered list. I copy a substring of that paragraph into an empty table cell. This cell is now formatted with the paragraph style of the source. Instead, the style by which the table cell had been formatted (e.g. 'Table Contents') should be preserved.

Steps to Reproduce:
1. Format a paragraph with a style, e.g. as numbered list.
2. Format the cells of a table as 'Table Contents'.
3. Copy a substring of the styled paragraph and paste it into an empty table cell.

Actual Results:
The table cell assumes the style of the source paragraph. In the example, it becomes a row of a numbered list.

Expected Results:
The style by which the table cell was formatted should prevail.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
One unwanted consequence of this bug appears in the conversion of a tabulated paragraph into a table (Table - Convert - Text to table - Separate text at Tabs): If the paragraph to be converted is one of a numbered list, every cell of the table thus produced is then numbered.
The error is more general: Upon copying a substring from any source paragraph into any target paragraph, the style applied to the source paragraph _must not_ even be included in the copy operation - let alone in the paste operation. It is not the purpose of a paste operation to destroy the style valid for its target.
This bug has been present from the very first versions of LO Writer. I had reported it years ago; but it was ignored. It causes much additional reformatting work in writing.
Comment 1 m_a_riosv 2025-12-30 23:24:16 UTC
Use Paste special - Unformatted text.
Comment 2 Christian Lehmann 2025-12-31 08:20:47 UTC
Apparently the bug report was not understood.
1) The possibility of using 'Paste special - Unformatted text' has nothing to do with the bug reported. The bug concerns properties of the source _paragraph_, not of the source _string_. These latter should, of course, be preserved in the default Copy-Paste process.
2) And even if 'Paste special' would solve the problem, forcing properties of the source paragraph on the target paragraph in the default Copy-Paste operation if only a _substring_ of the former is being copied is _always_ a bug. It is completely useless and only bedevils the user's work.
Comment 3 BogdanB 2026-02-01 13:39:51 UTC
Please let the bug in Unconfirmed status until someone else can confirm it, and will mark the bug as New. Thanks.