Description: When using Find and Replace to replace text with the same text but different formatting (e.g., bold and highlighted), LibreOffice applies the formatting correctly. However, after the replacement, the document contains large sections of extra white space. Steps to Reproduce: Steps to reproduce: 1. Open the Find and Replace dialog. 2. Search for specific text. 3. Replace ALL it with the same text, applying bold and highlight formatting (or any formatting). Actual Results: Large sections of unnecessary white space appear in the document and cannot be removed. Expected Results: Only the formatting of the text changes. Reproducible: Always User Profile Reset: Yes Additional Info: Version: 25.8.4.2 (AARCH64) Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df CPU threads: 8; OS: macOS 26.2; UI render: Skia/Metal; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
The bug is repeatable and applies to .docx and .odt files the same.
Please attach a sample file, reduced as much as possible, without private information.
Created attachment 204976 [details] Bug 170275 Sample POST- Find and Replace All In this sample of a recent podcast script, I use / as a markup to denote a retake in the recording. I use the Find and Replace All window to highlight and format the / as bold and yellow highlighted so that it can stand out more during the podcast editing. This file is saved after the bug resulted in white space added and the find and replace not actually performing the function. Screenshots to follow.
Created attachment 204977 [details] Screenshot of document and find and replace dialog BEFORE the bug.
Created attachment 204978 [details] Screenshot of document and find and replace dialog AFTER the bug.
Created attachment 204979 [details] Screenshot of document and find and replace dialog AFTER the bug.
Please explain in detail, step by step, what to do in the sample file, and what and where is the wrong result.
Created attachment 204987 [details] Bug 170275 Sample PRE- Find and Replace All Steps to reproduce: 1. Open document and the Find and Replace dialog. 2. Search in the Find field for "/". 3. Type "/" in the Replace field. Do not click Replace All. 4. Open the Format dialog and select Typeface>Bold in the Font tab, and Color>Yellow in the Highlighting tab. Click OK. 5. Click Replace ALL. Actual Results: Large sections of unnecessary white space appear in the document and the formatting is not applied. Expected Results: All "/" are replaced with a bold and higlighted "/".
I have tried following the steps described and I am not getting the bug. Results: Only the formatting of the text changes.