10-31-2009, 03:01 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: Sony PRS-505
|
HTML file added to library is truncated unexpectedly
The file contained in the .zip when added to the library is only 42k when the original is 382k. Opening the file reveals the following at the end, where it is cut off:
Code:
remained shut. <dd>"</dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></dd></body> </html> |
10-31-2009, 03:21 PM | #2 |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
The <dd> tag is used to describe an item in a definition list - not paragraphs. Remove them from the source file. Web browsers are used to handling crappy code and try to work around it by ignoring/fixing as best they can; conversion tools do not have this luxury.
|
Advert | |
|
10-31-2009, 03:52 PM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: Sony PRS-505
|
But the <dd> tag is actually needed to properly indent and separate the paragraphs -- removing them lumps everything together. Regardless of what the tag is originally intended for, it does serve a necessary purpose here.
I did find that replacing them all with <p>, while adding unneccessary blank lines when viewed with a web browser, is converted by calibre into a properly formatted lrf, which is an acceptable workaround for me. |
10-31-2009, 03:57 PM | #4 | |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
Quote:
You can style the p tag to behave in the same fashion by manipulating the margin/padding attributes in CSS; this way it will render consistently, be compliant, and behave in the fashion you want. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
BOOKS ADDED to KOBO DO NOT SHOW UP ON LIBRARY AND ÏM READING | cancan | Kobo Reader | 19 | 01-09-2016 04:01 AM |
Merging multiple HTML files into one HTML file | skoobwoman | Workshop | 45 | 07-11-2014 10:46 AM |
Truncated file | crutledge | Sigil | 11 | 09-13-2010 03:37 PM |
my library in a html file | Brandobras | Onyx Boox | 7 | 08-20-2010 02:45 AM |
Chicago Public Library Added No Books in August! | Sydney's Mom | News | 21 | 09-04-2009 02:15 PM |