https://bugs.documentfoundation.org/show_bug.cgi?id=62603

--- Comment #19 from Luke Kendall <l...@zeta.org.au> ---
Created attachment 136821
  --> https://bugs.documentfoundation.org/attachment.cgi?id=136821&action=edit
Example file to reproduce the bug

I am just reporting that this bug is still present in 5.4.1.2.

Attached is a very short file with a simple example of the broken behaviour.  I
hope this helps.

Here are the reproduction steps:

1. Open the provided file (RegExp-format-ruin.odt)
2. Open Find and Replace.
3. Copy and paste the Find string provided in the doc into the Find field
4. Copy and paste the Replace string provided in the doc into the Replace field
5. Click Find.
6. Click Replace

Result: note that the Italic style capital "O" changes to Regular.

>From the user perspective, only the space was changed (of course, the whole
matched text was replaced).

All the same, the format or attributes of matched sub-patterns ($1, $2 etc.)
should be preserved when they are replaced.

PS:
===

I feel this is related to similar problems when manually replacing selected
text: the new text typed in is given the format (italic/regular/bold) of the
text immediately to its left, instead of the format of the text that is being
replaced.

Maybe you would prefer a second bug report for that.  I have done so as Bug
112961.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to