Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2010, 04:51 PM   #1
afv011
Captain Penguin
afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.
 
afv011's Avatar
 
Posts: 2,947
Karma: 2077653593
Join Date: May 2009
Location: Vancouver, BC
Device: Kobo Libra 2, Nook Glowlight
Paragraph separation

Hi all,

I got a few books recently, and I realized that the chapters do not have a separation when there is a change of scene. Looking at the Epub source, I see that the source has a <br /> in those places, however the reader (nook) or the desktop reader (Adobe Digital Editions) do not care about that <br />. Sigil, on the other hand, respects it.

This is a sniped of the code in question:

Code:
    <p class="para1"><span>He nodded. “Why not? We’ve all got to pay the piper sometime, don’t we?” He frowned as the music swelled to even more infuriating levels. “Or in this case, the damned balalaika player.”</span></p><br />
Is there a simple way, via CSS, to force the readers to display a line break at the <br /> ? I know I can go through the text and manually insert a line break, but it would be quicker if I can do so by updating the CSS rules, as I have a few books that show this problem. Thanks in advance!
afv011 is offline   Reply With Quote
Old 11-05-2010, 06:32 PM   #2
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
The <br /> tag is an inline element and cannot be placed outside block elements. Faking it by wrapping everything in a div isn't a solution. The epub is badly coded.

In Sigil, select
<br /> [linebreak] <p class="para1">
press Ctrl-H and put <p class="parabrk"> in the replace box and press replace all. Then add
.parabrk {
margin-top: 1.2em;
margin-bottom: 0;
...
}
to the css.
charleski is offline   Reply With Quote
Advert
Old 11-05-2010, 07:08 PM   #3
afv011
Captain Penguin
afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.
 
afv011's Avatar
 
Posts: 2,947
Karma: 2077653593
Join Date: May 2009
Location: Vancouver, BC
Device: Kobo Libra 2, Nook Glowlight
Thanks, I'll try that.
afv011 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paragraph breaks thedevilsjester Calibre 2 09-07-2010 12:26 PM
Paragraph spacing jhempel24 Calibre 5 08-24-2010 12:14 AM
LRF paragraph problem qq67 Calibre 4 03-09-2010 06:40 AM
Paragraph question shrktank Calibre 2 11-29-2009 12:07 AM
What is so unusual about this paragraph? Madam Broshkina Lounge 11 04-24-2008 03:04 PM


All times are GMT -4. The time now is 02:19 PM.


MobileRead.com is a privately owned, operated and funded community.