View Single Post
Old 07-07-2010, 05:13 PM   #4
troymc
Groupie
troymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enough
 
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
Quote:
Originally Posted by theducks View Post
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 View Post
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 View Post
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 View Post
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
troymc is offline   Reply With Quote