01-08-2009, 06:23 PM | #1 | ||
Enthusiast
Posts: 33
Karma: 10
Join Date: Oct 2008
Device: Kobo Aura One (ex Kindle, Sony 505)
|
Calibre collapses paragraph margins - why?
I'm formatting a book in HTML, and I want to lay out my paragraphs with no text-indent, but a 6pt gap between paragraphs. If I code like this:
PHP Code:
Quote:
But completely different <p> tags, say referring to a chapter title and body text will have gaps between them. After much fiddling around, I've discovered that any paragraph with the same attributes as the previous paragraph will be completely collapsed into each other, with all margin information discarded. For example, the following will give exactly the same result as the last example: PHP Code:
PHP Code:
Quote:
Thank you for any suggestions! At the moment I'm doing all my books with alternating paragraph classes, very clunky. |
||
01-08-2009, 06:49 PM | #2 |
creator of calibre
Posts: 44,327
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's an optimization, creating too many text blocks in an LRF file results in the sony reader rebooting on longer files. Unfortunately, that means you cant achieve the effect you want, except with the alternate classes.
|
Advert | |
|
01-08-2009, 11:47 PM | #3 |
Enthusiast
Posts: 33
Karma: 10
Join Date: Oct 2008
Device: Kobo Aura One (ex Kindle, Sony 505)
|
Well that explains it, glad I wasn't doing anything wrong. Thank you very much!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Each sentence treated as a paragraph in new versions of calibre | jidiot008 | Calibre | 3 | 11-16-2010 06:00 PM |
Prevent Calibre to paragraph each line | armkbdotcom | Calibre | 3 | 05-29-2010 03:15 PM |
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 |