11-05-2010, 04:51 PM | #1 |
Captain Penguin
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 /> |
11-05-2010, 06:32 PM | #2 |
Wizard
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. |
Advert | |
|
11-05-2010, 07:08 PM | #3 |
Captain Penguin
Posts: 2,947
Karma: 2077653593
Join Date: May 2009
Location: Vancouver, BC
Device: Kobo Libra 2, Nook Glowlight
|
Thanks, I'll try that.
|
|
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 |