View Single Post
Old 08-12-2013, 03:10 PM   #31
Bob Houston
Junior Member
Bob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it isBob Houston knows what time it is
 
Bob Houston's Avatar
 
Posts: 8
Karma: 2062
Join Date: Aug 2011
Location: Queens, NYC
Device: Kindle
Quote:
Originally Posted by meme View Post

If I recall correctly, the nbsp character is replaced with an entity as soon as the file is opened, otherwise it would be lost by later routines.
I inserted the Doctype entry at the beginning of the xhtml and html files inside my test epub and retested.

With the inclusion of the Doctype entry, as has been stated previously, everything worked fine. There was no 'not well formed' message, the nbsp entries were included, and the file validated.

My question is - Could the presence of 'Doctype' be noted, and inserted if not present, as the very first thing when the xhtml or html files are parsed?

Bob
Bob Houston is offline   Reply With Quote