Thread: Page breaks
View Single Post
Old 05-30-2009, 11:28 PM   #9
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
The tags appeared to be in pretty bad shape. Note that epub requires xhtml, which requires every tag opened to be neatly closed to form proper xml. Calibre will attempt to convert html to xhtml, but that process is error prone and its' effectiveness is pretty dependent on the source material.

For this file, I did the following:
Replaced '<br><br>' with '</p><p>'
Cleaned up all the remaing single <br>, <p>, and </p> tags. There were a lot of places where a paragaph began with <p> but wasn't terminated with </p>, in many other cases there were many </p> tags where the preceding beginning of the paragraph was <br> instead of <p>.

The last issue, which I didn't notice until I sent the book to my reader, is that every paragraph immediately following an <h1> tag wasn't enclosed in <p></p> tags, which apparently makes it invisible on the reader.

Basically every paragraph should start with <p> and end with </p>.
<br> is not considered a good tag to use, but I believe if you just want a line break you can make it a self closing <br/> and that is acceptable for xhtml.

Seems to work fine with these changes on my Sony, but I didn't go through every page in detail.
Attached Files
File Type: epub are mormons theists - A.A. Howsepian.epub (22.4 KB, 275 views)

Last edited by ldolse; 05-31-2009 at 12:49 AM.
ldolse is offline   Reply With Quote