View Single Post
Old 06-02-2017, 09:16 PM   #6
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by DiapDealer View Post
When you add a blank html file, the xml declaration is automatically created. Unless you explicitly delete it, there's no reason for a new, blank html file NOT to have an xml declaration.

If you have Mend on Save and Open enabled in your preferences, there's no way that I know of to lose "everything." There's really no good reason to disable Mend. It will easily/painlessly fix things like missing xml declarations. It can literally save you from yourself. Disable it at your own peril.

If Mend was enabled, then I've no idea how "everything" could be gone. Even with a crash. It doesn't make sense. Deleting the xml declaration (and continuing to edit) doesn't cause a crash on my system. It just tells me I have xhtml that's not well-formed and gives me the option to fix it automatically, or fix it manually.
Hey Diap. Yeah, I explained myself poorly. I did delete all the xml doctype stuff when I opened the blank file. I do it all the time when I copy and paste from a previous book (which brings along all the xml stuff at the top). Only this time I was just pasting something from the code without the full page. (screenshot)

So that was the exact screen I got. I tried to X out of the window. I clicked on a few more things to test the funtionality but the screen was froze. I would say about twenty seconds later Sigil crashed and I got the window asking me if I wanted to re-launch Sigil, which I chose. Then I got the window saying that specific file I'd been working on couldln't be found.

So I looked for the file. I had two copies of it but only one that I had done the great majority of work on. I opened it and it was missing the great majority of the work. Like I said, I thought I'd missed something and checked the other file. Same thing. Missing the majority of the work. I did a file search to see if there happened to be more than two copies. There wasn't.

It seemed absolutely impossible that that could have happened but that's what happened.

And yeah Mend is on Open and Save. (screenshot)

I kept working with the same file and it saved properly. (I of course also saved it somewhere else.)
Attached Thumbnails
Click image for larger version

Name:	Selection_041.png
Views:	136
Size:	152.6 KB
ID:	157155   Click image for larger version

Name:	Selection_042.png
Views:	149
Size:	69.4 KB
ID:	157156  
Gregg Bell is offline   Reply With Quote