![]() |
#1 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Removing space between paragraphs in a Mobi book
I've bought a commercial Amazon eBook, which has all its paragraphs double-spaced. Doing a Mobi-to-Mobi conversion and selecting the "Remove space between paragraphs" option does not change this.
Looking at the HTML code, the problem is self-evident: there is a: Code:
<br class="calibre4"></br> Is there any way that I can remove this in Calibre? Thanks! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
You could use "Search and Replace" facility under the Conversion settings to replace every occurrence of that sequence with an empty string.
|
![]() |
![]() |
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
|
Thanks - that worked
![]() |
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
What I finished up doing was to replace:
Code:
/p><br/><p Code:
/p><p |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
FWIW: I had a similar issue with PG book last night. I wanted a MOBI file and didn't want to mess with my own conversion from their HTML. PG's ePub was a mess so I downloaded the MOBI which had spaces between the paragraphs.
I did a MOBI>EPUB and edited in Sigil to fix several small issues and found the space between paragraphs to be created using a styled paragraph containing a NBSP. It was on 3 lines and Sigil's Search&Replace couldn't handle finding a match (failed to deal with the line ending??) and I wasn't up to creating a successful RegEx. When I reconverted EPUB>MOBI with Calibre, its legacy "remove spaces between paragraphs" (Look & Feel tab) failed to work. I then tried the new one on the Heuristic Processing tab which did the trick. Apparently the two use somewhat different logic. Calibre is like a Swiss Army knife. If one blade isn't the right tool another probably is. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
The option under look and feel only affects css/styles, it doesn't change html. The option under Heuristics is designed to handle dwig's use case, as heuristics does muck with the html. For some documents both can be useful. Harry's use case is not covered by either feature, as abuse of <br> tags is 'relatively' uncommon, though I'm seeing it more frequently in mobi docs.
|
![]() |
![]() |
![]() |
#7 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The annoying thing is that it's a completely unnecessary abuse. Mobi provides a documented method of adjusting paragraph spacing.
|
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
space between paragraphs | gatorman | Sigil | 3 | 01-07-2011 10:17 AM |
Ragged right / space between paragraphs | Oldpilot | Sigil | 5 | 11-11-2010 07:59 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 |
Unwanted space between paragraphs | superanima | Calibre | 3 | 10-14-2009 02:28 PM |