Bug 170275 - Find and Replace All (with formatting) adds large blank spacing to the document
Summary: Find and Replace All (with formatting) adds large blank spacing to the document
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-08 21:50 UTC by moises.luna
Modified: 2026-01-09 19:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug 170275 Sample POST- Find and Replace All (4.95 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2026-01-09 00:40 UTC, moises.luna
Details
Screenshot of document and find and replace dialog BEFORE the bug. (415.20 KB, image/png)
2026-01-09 00:42 UTC, moises.luna
Details
Screenshot of document and find and replace dialog AFTER the bug. (375.91 KB, image/png)
2026-01-09 00:42 UTC, moises.luna
Details
Screenshot of document and find and replace dialog AFTER the bug. (418.25 KB, image/png)
2026-01-09 00:42 UTC, moises.luna
Details
Bug 170275 Sample PRE- Find and Replace All (4.90 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2026-01-09 16:59 UTC, moises.luna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moises.luna 2026-01-08 21:50:28 UTC
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
Comment 1 moises.luna 2026-01-08 21:52:46 UTC
The bug is repeatable and applies to .docx and .odt files the same.
Comment 2 m_a_riosv 2026-01-08 23:57:04 UTC
Please attach a sample file, reduced as much as possible, without private information.
Comment 3 moises.luna 2026-01-09 00:40:59 UTC
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.
Comment 4 moises.luna 2026-01-09 00:42:07 UTC
Created attachment 204977 [details]
Screenshot of document and find and replace dialog BEFORE the bug.
Comment 5 moises.luna 2026-01-09 00:42:26 UTC
Created attachment 204978 [details]
Screenshot of document and find and replace dialog AFTER the bug.
Comment 6 moises.luna 2026-01-09 00:42:40 UTC
Created attachment 204979 [details]
Screenshot of document and find and replace dialog AFTER the bug.
Comment 7 m_a_riosv 2026-01-09 01:52:20 UTC
Please explain in detail, step by step, what to do in the sample file, and what and where is the wrong result.
Comment 8 moises.luna 2026-01-09 16:59:39 UTC
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 "/".
Comment 9 sripg 2026-01-09 19:08:27 UTC
I have tried following the steps described and I am not getting the bug. 
Results: Only the formatting of the text changes.