View Single Post
Old 08-08-2013, 07:11 PM   #23
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by meme View Post
That book is missing the DOCTYPE in every chapter:

Code:
<?xml version='1.0' encoding='utf-8'?>
should be

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

EDIT:
And to expand on that - if you set your preferences to NOT clean on open, then you will get the error messages. The book will still open in Sigil, allowing you to see your files are missing the DOCTYPE. And if you have Preview on, then you will see it is identifying a line with an nbsp entity as causing the error.

If you set your preferences to clean on open, then the DOCTYPE will be added for you and the files will display ok.

The issue is, as I think was mentioned previously, that your file contains some nbsp characters (353 of them I believe) which in 0.7.2 were probably converted to normal spaces, but in 0.7.3 those nbsp characters are now correctly being converted to the nbsp entity &nbsp; But since the files are missing the DOCTYPE header, Sigil does not know how to display that entity.

You can let Sigil clean the file for you. Or if you want to make sure nothing else is touched, you can open it without cleaning and then use Find&Replace to add the DOCTYPE line to every file.
Thanks that is what I thought it was, good to have a second and expert opinion.
It does also this when converting the html or lit to epub with calibre.

bernie
gbm is offline   Reply With Quote