Quote:
Originally Posted by theducks
Search and Replace has problems finding italics (book view)
and replacing text removes the Italics
|
It is not possible to preserve the italic, bold or any other attribute when replacing.
For instance:
Code:
<p>This is <i>one</i> paragraph</p>
you want to replace "is one" with "is not one". What should be italic? "not" or "one"? How about replacing it with "is not long"? Or if you're replacing "is one paragraph" with "is not good", what should be italic?
This goes into some higher theory about parse trees and parent-child descendants. Point being, you can't know in advance when you're replacing that some part of the text should become a child of the current element. It's theoretically impossible.
Every word processor I know does what Sigil does too.