View Single Post
Old 07-08-2009, 01:14 PM   #2
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
The <p> alone is not a bad thing....

MobiPerl code strips all ending </p>'s when converting from .mobi to .html. I see the same thing when my Mobi2IMP program converts .mobi/.prc to .imp as the intermediary .html is left exploded with images.

For example, here is just the .html file (without images) extracted from my Moonport.prc and notice that it is ONE .html as well!!!

I know calibre adds </p> to .html files that get converted to .epub so as to comply with XHTML 1.1 Strict (every tag needs a terrminator tag). So perhaps feed it to calibre and take the resulting (x)html. You can even tell calibre to not-split the files based on page-breaks and/or 300K chunk size!

Can you give a sample of that BAD code?
Attached Files
File Type: zip Moonport_html.zip (514.0 KB, 294 views)
nrapallo is offline   Reply With Quote