Created attachment 197579 [details] Example file from Writer Attached file contains specially formatted paragraphs. When copy-pasting the first two paragraphs into the third, the bold first word loses its formatting. 1. Open attached file 2. Copy "AAA Lorem Ipsum" from the first paragraph 3. Paste it into the empty third paragraph -> The AAA part loses its bold formatting Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 7713d916e06a8388f849a758f928cbcfded6c0ae CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: default Seems to have started in 24.2 with: https://git.libreoffice.org/core/+/2d0f43befdaa1010062b534dffa82adad8c956c8 commit 2d0f43befdaa1010062b534dffa82adad8c956c8 [log] author Miklos Vajna <vmiklos@collabora.com> Mon Aug 14 08:10:51 2023 +0200 committer Miklos Vajna <vmiklos@collabora.com> Mon Aug 14 09:17:55 2023 +0200 tdf#156321 ODT import: fix lost char format on outer span elements Adding CC to: Miklos Vajna
Created attachment 197580 [details] The document before the copy-paste
Created attachment 197581 [details] The document after the copy-paste
I can reproduce, but not consistently. If I undo, then copy and paste again, it stops removing the boldface formatting, for some reason. Version: 24.8.2.1 (X86_64) / LibreOffice Community Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13 CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3 Locale: en-IL (en_IL); UI: en-US
> ODT import: fix lost char format on outer span elements Oh, this is strange. If you look at the bugreport, the context was some 3rd-party generating custom ODT files -- Writer is never supposed to write ODT files with nested spans. And our in-memory model doesn't support nested character formatting, either.
I can reproduce in the version below...but pasting comes back OK if done as Rich Text! Version: 24.8.2.1 (X86_64) / LibreOffice Community Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13 CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win Locale: en-CA (en_CA); UI: en-GB Calc: CL threaded