|
|
#1 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Jan 2014
Device: Android tablet + FBReader
|
How to control space between paragraphs in my recipe
With Kovid's help I've made some progress with tuning fonts and sizes in my first recipe attempt. Now I'm trying to cut down on the space between paragraphs (margin, I think), which ends up being a bit excessive on my tablet.
My source has unclassed paragraphs, but they are descendants inside a containing div: Code:
<div id="story-body" class="eza-body clearfix"> <span class="sLoc">PARIS</span> <p>With a military parade on the Champs-Elysees and a gilded tour of France's most storied monuments, French President Emmanuel Macron laid on the charm as he positioned himself as the indispensable intermediary between Europe and President Trump.</p><p>The Bastille Day demonstration on Friday capped two days of Parisian glitz for Mr. Trump and his wife, who were Mr. Macron's guests of honor in commemoration of the 100th anniversary of America's entry into World War I.</p> ... Doesn't seem to have made any difference. The markup I see from a test ebook-convert is: Code:
<div id="story-body" class="eza-body"> <span>PARIS</span> <p class="calibre8">With a military parade on the Champs-Elysees and a gilded tour of France's most storied monuments, French President Emmanuel Macron laid on the charm as he positioned himself as the indispensable intermediary between Europe and President Trump.</p><p class="calibre8">The Bastille Day demonstration on Friday capped two days of Parisian glitz for Mr. Trump and his wife, who were Mr. Macron's guests of honor in commemoration of the 100th anniversary of America's entry into World War I.</p> ... Any thoughts on what I need in my recipe to actually reach to the style being applied to the paragraphs would be appreciated. Thanks, Alan |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,616
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just use the calibre conversion setting for this.
conversion_options = {'remove_paragraph_spacing': True} |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Jan 2014
Device: Android tablet + FBReader
|
That pulls the space out, many thanks.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No space between 2 paragraphs? | Phylis Sophical | Sigil | 32 | 11-03-2014 05:17 PM |
| Adding space between paragraphs | Gazella | Conversion | 5 | 04-03-2014 05:35 PM |
| How do I get a double space between paragraphs? | ficbot | Sigil | 7 | 07-17-2013 10:12 PM |
| space between paragraphs | gatorman | Sigil | 3 | 01-07-2011 11:17 AM |
| Unwanted space between paragraphs | superanima | Calibre | 3 | 10-14-2009 03:28 PM |