Quote:
Originally Posted by theducks
If that happens, BAIL OUT (Quit-- DISCARD)
Frequent saves of the last "almost there" version, before any global S + R is a good idea.
|
Yeah, I was trying to do that. I just didn't think the unopened pages would get "fixed" when I hit save that one last time - I thought they would be saved with the error which I could then go in & fix manually.
Quote:
Originally Posted by Valloric
Yes. All the chapters that have been opened are stored as a DOM (parsed XML) in memory. To do that, the XML needs to be valid.
So when a global search&replace operation screws up the mark-up, Tidy runs to try and fix it.
|
Thanks! It's nice to at least understand what it's doing.
Quote:
Originally Posted by Valloric
It usually does a good job of this. But if you really screwed up the code, well then... bad things happen.
|
And it's amazing how bad a one character typo can screw up mark-up!
Quote:
Originally Posted by Valloric
I feel for you, I really do. I plan to add an autosave feature that would save your document to three rotating backups every five minutes or so. You could then always open one of those.
|
I'll be looking forward to that. It would have really saved my butt!
Troy