View Single Post
Old 05-04-2013, 03:06 PM   #37
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by meme View Post
After upgrading, it's best to check the cleaning options. With 0.7.2 if you have Open checked, then when you switch from Book View to Code View your code will be cleaned. This is because you are opening the code Book View created (Book View editing is provided by Qt, and Qt will not keep the same code layout you have in Code View).
I have 0.7.1, and I thought I'd set it. Apparently not. Still, not intuitive to me. (Also, am I the only one who finds the Sigil Preferences on the edit menu weird? I mean, this isn't insurmountable, obviously...but I would never think to look for a program's defaults or preferences on the edit menu. Just me being whiny.)


Quote:
If you switch from Code View to Book View, then if the code is invalid, it should stop you from switching. Forcing the code to be valid before switching prevents losing text/tags.

The same should happen when saving an EPUB or opening an EPUB - you should be prompted that the file is invalid and that cleaning could cause data loss, although it will allow you to open/save an invalid file.
See....here's where I think we are having an issue. Sure, I agree; the program should not allow you to save bad code, or switch to BV with bad code. My problem is that I never got the chance to clean the bad code. Despite selecting "manual," all that happened was the PSO'D, and half my html file vaporized.

Quote:
If, as has been suggested, you are not being prompted about invalid code when switching to Book View, then that's an issue. I haven't been able to reproduce it, but will try to look into it more to see how that might be possible.

I wonder if the prompt to manually or automatically clean should be removed anyway - so that if the code is invalid it will just refuse to switch to Book View. Though if the bug is that the prompt isn't triggering on an invalid file, it won't help much.
No, no: that's not what I suggested (that I was not being prompted about invalid code when switching to BookView). What I said was, I was prompted, and when I selected "manual," the dreaded giant pink error message showed up and half my file disappeared--everything from the "error" to the EOF. Yes, I got the prompt, as far as I can recall; it's what happened after that that was problematic. I think it was as though it ignored the "manual" selection, and then rendered BV anyway, and in so doing, showed the (now) corrupted file. Does that make sense to you?

As far as recreating the issue...try having a paragraph with an opening header class and a closing p class, see if that does it, or, try a named paragraph class with some typos, like...forget the italics around a class name, or something like that. I know I had at least one of those errors. I think the "PSO'D" error was the opening a line with a header class and closing it with a paragraph class (or a closing span tag, instead), but...if I can recreate it, I'll send you the file.

Hitch
Hitch is offline   Reply With Quote