To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=87362
                 Issue #|87362
                 Summary|Regexp find/replace with format and undo
               Component|Word processor
                 Version|OOo 2.3.1
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|editing
             Assigned to|mru
             Reported by|csernica





------- Additional comments from [EMAIL PROTECTED] Mon Mar 24 08:39:23 +0000 
2008 -------
If a find and replace is performed using a regular expression and a format on
the search condition, and a subsequent find and replace is performed using
neither formatting nor a regular expression, the format that was originally
searched on is lost when both operations are undone. This affects character
formatting only, not formatting that affects an entire paragraph.

There may be a more general way to characterize this problem, but I haven't
investigated it to that extent.

The following steps produce the error on the file that will be attached to this
issue.

* Open the Find and Replace box from the Edit menu.
* Click "More Options" and check Regular Expressions
* Enter .* under "Search for"
* Click Format... On the Font tab select Italics from the Typeface menu. Click 
OK.
* Enter <i>&</i> under "Replace with"
* Click "Replace All"
* Close the Find and Replace box
* Re-open the Find and Replace box from the Edit menu. NB: I don't know if the
issue can be reproduced without these two steps.
* Enter <i> under "Search for"
* Click "More Options" and click "No Format"
* Enter [i] under "Replace with"
* Click "Replace All"
* Close the Find and Replace box
* Undo both Find and Replace operations

At this point the text should be in exactly the same state as it was in the
beginning. Instead, all the text that was formerly in italics is now in regular
text. The only exception is the text "This is an entire paragraph italicized."

(In case anyone is curious, I was preparing to post the same material to two
different boards, one of which allows text formatting with a limited subset of
HTML, the other with BBCode. Unfortunately, in this instance I had made some
minor edits to the text beforehand but neglected to save before doing these find
and replaces. I therefore undid the operations so I could save the edits, only
to lose all my italicized words.)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to