Description: There are numerous ways in which italics or regular text can be somehow incorrectly marked as italic or non-italic, as far as the Find -> Format dialogue is concerned. Sometimes when it shows up, reversing the change made doesn't reverse the problem, or produces other unexpected results. When this happens, "Clear Direct Formatting" or toggling the italics on and off doesn't work either. Sometimes the only way I've been able to fix it is by deleting the passage and retyping it completely. Steps to Reproduce: 1. Type something like the following, with [i][/i] indicating italicized passages: Lorem ipsum dolor one. [i]Lorem ipsum dolor two?[/i] Lorem ipsum dolor three. [i]Lorem ipsum dolor four?[/i] Lorem ipsum dolor five. So far this works fine. 2. Italicize a single word in the middle of a sentence: Lorem ipsum dolor one. [i]Lorem ipsum dolor two?[/i] Lorem ipsum dolor three. [i]Lorem ipsum [/i]dolor[i] four?[/i] Lorem ipsum dolor five. 3. Do a "Find All" for "Format: No Italic", or enable Regular Expressions and search for "." for "Format: No Italic". Actual Results: Using "Find All" for "Format: Not Italic" will not highlight sentence three. Searching for Regular Expression ".", "Format: Not Italic", will highlight every character in the first sentence and the "d" in our non-italicized word. Expected Results: The first, third, and fifth sentences should have been highlighted as well as the word "dolor" in the fourth sentence. Or, when searching for ".", every non-italicized character should have been highlighted., i.e., "Lorem ipsum dolor one. Lorem ipsum dolor three. dolor Lorem ipsum dolor five." Reproducible: Always User Profile Reset: Yes Additional Info: This particular example is reversible, by re-italicising the word we un-italicized, but I haven't been able to undo every example of this happening. "Clear Direct Formatting" doesn't do anything either. This is one reproducable example, but I noticed it during writing when trying to search for all italicized portions of the text. Sometimes, italicized portions will get selected as well. I'm unclear what causes it most of the time, and so far the only sure way I've found of working around it is deleting the entire paragraph and rewriting it, however, there's no workaround if you want to write something like the above example. Your formatting will simply not be searchable the way it should be.
Created attachment 197351 [details] Find All, various results Bug visualized.
Thank you for submitting this report. I am able to reproduce this issue on: Version: 24.8.2.1 (X86_64) / LibreOffice Community Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13 CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded This bug is a duplicate of: https://bugs.documentfoundation.org/show_bug.cgi?id=135857 *** This bug has been marked as a duplicate of bug 135857 ***