View Single Post
Old 05-18-2012, 08:20 AM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by kiwidude View Post
*However* what I suspect many people do not know is that Tidy *will* destroy html content in some circumstances. Or at least that is what user_none is pointing to as the cause when I reported this (and rather more concerning is that it has a status of "CannotFix" and the suggestion is to turn off Tidy as the workaround).

So if your document contains some smart tag remnants such as I have seen from LIT conversions like this:
<span w:st="on"><span w:st="on">Wash</span></span>

Then *all* content on the html page will be removed from that point onwards. Utterly destroyed. Can be entire chapters worth (which you might notice) or subtly small amounts which you likely won't.

Tidy either should be off by default, fixed to address this issue, or removed from Sigil in my opinion. This is just way too dangerous a flaw - edit a book in Sigil thinking you are making a small change and end up losing book content forever...
I agree that Tidy can 'destroy' code when it encounters certain stuff, which is very disturbing. When I know for sure that my XHTML contains no 'exotic' code, I leave Tidy on. Otherwise I will turn it off. That being said, in no circumstance I will let Tidy 'automatic' fix things where there are things wrong. That is an option which should be removed, as it is potentially very destroying.

Leaving Tidy out will give other issues. Since there is no real alternative for Tidy (or so both Valloric and user_non specified and I believe them), it is really a lose-lose situation.

Last edited by Toxaris; 05-18-2012 at 12:27 PM.
Toxaris is offline   Reply With Quote