https://bugs.documentfoundation.org/show_bug.cgi?id=154790
Bug ID: 154790 Summary: Copy and paste alter all Heading paragraph styles throughout the remainder of the document Product: LibreOffice Version: 7.4.5.1 release Hardware: x86-64 (AMD64) OS: Windows (All) Status: UNCONFIRMED Severity: normal Priority: medium Component: Writer Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: dale8...@gmail.com Steps to reproduce the problem: 1) Create or open an ODT Writer document that already has some Heading paragraph styles used in the document. E.g.: Heading 1 (apply the Heading 1 paragraph style) text Heading 2 (apply the Heading 2 paragraph style) text 2) Copy some code from a SQLQuery window in SQL Server Management Studio (SSMS) version 19.0.1. 3) Paste into the ODT Writer document. Not only does the new text come in formatted, but this action also changes the appearance of the Headings that previously existed in the document; the Headings throughout the entire document are all now indented. Using Edit>Undo does remove the pasted text, but does not undo the changes to the various Heading paragraph styles. Editing the paragraph style does not reveal why the headings are now all indented; the Indents & Spacing tab in the "Paragraph Style: Heading 1" dialog shows 0.00 cm for the Indent > Before text and Indent > First line settings. I understand that normal paste copies in the formatting, so that the pasted text preserves tables, colours, etc. But changing the existing paragraph styles in the destination ODT so that the entire remainder of the document is changed is not desirable behaviour; in particular having all Headings indented is an obvious and ugly change to automatically impose. I want an option that allows me to copy in formatted text, preserving the incoming colours, fonts, bullets and numbered lists, without allowing the paste to mess up the existing paragraph styles used in the remainder of the document that existed before the paste. Microsoft Word has a paste option to merge foramtting with the styles that already exist in the document; so if the incoming text uses common paragraph styles like Heading 1, then the incoming text would use the existing style from the destination document and have its appearance changed to match the destination document. Or maybe have an option to copy, but do not import or apply paragraph styles for the pasted text; instead just have the text set to be based on Default Paragraph Style but then apply bolding, colours and fonts as needed to preserve the look of the incoming text, but that pasted text will not use any defined paragraph styles. Note that the Paste Special > Rich text formatting (RTF) option gives the same behaviour that alters the remainder of the document. -- You are receiving this mail because: You are the assignee for the bug.