![]() |
#1 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Enhancement request for "remove space between paragraphs"
Hi Kovid,
The "remove space between paragraphs" feature of Calibre is probably the feature that I use most often when converting books. It works extremely well almost all the time, but there would be one "tweak" that would make it perfect for me: would it be feasible to make it a little smarter, such that it didn't indent a paragraph that immediately followed on from a chapter heading, or other title? I'd be grateful if you could give this request some consideration for future development. Thanks! |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Have you tried using an additional CSS in the conversion? Something like: Code:
h3+p,h1+p,h2+p {text-indent: 0; } |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
No, I haven't. I'll give that a go - thanks for the suggestion.
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Note: I assumed H#+P
but some books use DIV instead of P or even more difficult H# followed by a DIV (chapter body) wrapper for the P or DIV paragraphs In those cases ![]() One of the reasons I just use Sigil to touch up a basic conversion. Look, then do what is needed for that book |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm not sure how robust that can be made, without major efforts. As theducks points out, "preceded by" is not well defined in html. For example, all of the following snippets will render as paragraphs immediately preceded by a title:
Code:
<h1>title</h1> <p>... <h1>title</h1> <div><div><p> <h1>title</h1> <table><td><p>... <h1>t</h1> <div><img src="blank.png"><p> <h1>title</h1> <p style="display:none or visibility:hidden"><p>... |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove white space between paragraphs for iPad? | kabloooie | Conversion | 4 | 05-28-2012 05:11 AM |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
Is there any way to remove space between paragraphs? | kabloooie | Calibre | 6 | 11-03-2010 08:32 AM |
How to reduce indents without "removing space between paragraphs" | Skydog | Calibre | 5 | 06-05-2010 12:58 AM |
remove space between paragraphs-yes the box is checked | Blurr | Calibre | 1 | 12-23-2009 06:34 AM |