View Single Post
Old 10-31-2009, 03:01 PM   #1
seth123abc
Junior Member
seth123abc began at the beginning.
 
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>
The original file uses the 'dd' tag for paragraphs, but does not close them. The </dd> must have been added by calibre when the file was added to the library. I can only guess that calibre expects the <dd> to be closed and therefore adds all of those </dd>, and the file is truncated perhaps because it thinks all of those tags are being chained and there is some sort of limit preventing it from adding the entire file? In any case the original file opens and views perfectly in any web browser. I am not really sure what exactly is going on here, perhaps someone here will be able to explain/fix.
seth123abc is offline   Reply With Quote