View Single Post
Old 02-02-2009, 05:39 PM   #26
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,578
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Maintaining Blank Lines/Paragraphs w/ Mobipocket Creator

For various valid reasons, some blank paragraphs must be maintained in the final eBook e.g. between verses of a poem. Blank paragraphs can be ignored if you are using Mobipocket Creator to produce the final book as it ignores all blank paragraphs. Trying to find a way to maintain desired blank paragraphs in Mobipocket Creator, I ran the following test on a poem with several verses. The poem was repeated four times in the file and each method was applied to one of the copies.

With blank paragraph from original file.
HTML produced by BD: <DIV align=justify>&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
Removed by Delete Empty Paragraphs in BD.
Ignored by Mobipocket Creator (no blank paragraph in book)

With Insert Empty Paragraph (Ctl + E)
HTML produced by BD: <DIV>&nbsp; &nbsp; </DIV>
Ignored by Delete Empty Paragraphs in BD.
Ignored by Mobipocket Creator (no blank paragraph in book)


With Harry's Hint: (Enter period, center, delete period)
HTML produced by BD: <DIV align=center> </DIV>
Ignored by Delete Empty Paragraphs in BD.
Ignored by Mobipocket Creator (no blank paragraph in book)

Edit HTML file to replace <DIV> and </DIV> with <P> and </P>
This method was maintained by Mobipocket Creator. Everything worked fine even when every instance of <DIV> and </DIV> was replaced with <P> and </P>. Either a selective replacement or a "Big Bang" replacement seems to work. With the "Big Bang" replacement even undesired Blank Paragraphs will be maintained.

I have found that the most selective method is to place a paragraph containing "..." where I want an empty paragraph and then edit the HTML file to replace those lines of HTML with the Blank Paragraph :<P>&nbsp;&nbsp;&nbsp;&nbsp;</P>.

HTML produced by BD: <DIV align=justify>&nbsp;&nbsp;&nbsp;&nbsp;... </DIV>
Replace with: <P>&nbsp;&nbsp;&nbsp;&nbsp;</P>

Patricia's solution is even simpler: Replace with <BR>

The blank lines/paragraphs were maintened in the desired locations. If you are using Mobipocket Creator, you are already editing the HTML file to add TOC and START READING tags.

Perhaps someone, especially HarryT, has come up with a better solution.

Last edited by crutledge; 02-02-2009 at 08:22 PM.
crutledge is offline   Reply With Quote