View Single Post
Old 04-15-2010, 09:36 PM   #3
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Well, the line-breaks should be terminated (<br/>) as epub files are xhtml. Maybe that's your issue - just replace them all with terminated tags, which should also be compatible with html. Also, if there's no text in a block after a <br/> then the break will be ignored, so if you want to insert an extra line after a paragraph you need to do something like
Code:
<p>text text text<br />&nbsp;</p>
In general, I prefer to mark up extra line-breaks using css instead, which also allows you to set the following paragraph flush, such as:
Code:
css - 
.normal_paragraph {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1em;
}
.space_above {
  margin-top: 1.2em;
  margin-bottom: 0;
  text-indent: 0;
}

body - 
<p class="normal_paragraph">preceding section text</p>
<p class="space_above">New paragraph with one blank line above</p>
This is generally more robust and flexible than using <br/> tags.
charleski is offline   Reply With Quote