Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2019, 06:38 AM   #1
nrich61
Junior Member
nrich61 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2011
Device: nook
Paragraph Spacing Assistance Requsted Please

So I've tried converting and reconverting with the "remove paragraph spacing(?)" checked, which didnt work, so i decided to dick around with the editor to see if i could figure out how to fix it, i found a way to fix it manually, as in one spacing at a time..... which would take forever in this 10k plus page epub.

So i'm looking for assistance on a way to make this easier/shorter either through the editor or through the conversion utility please.
There are two lines that are almost the same, if i remove the bottom of the two lines, that will remove the line spacing. But i cant use add/remove because each pair has a slight difference from the previous pair (the "data-1num="(this number)).

if anyone can help with this i would greatly appreciate it!

Ive marked the lines that if removed will remove the spacing between paragraphs.
Attached Thumbnails
Click image for larger version

Name:	Calibre.jpg
Views:	226
Size:	361.5 KB
ID:	170019  

Last edited by BetterRed; 03-05-2019 at 08:46 AM. Reason: remove oversize image - see Guideline #9
nrich61 is offline   Reply With Quote
Old 03-05-2019, 09:40 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,497
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
None of the text appears to be in paragraph tags. It looks like you might be able to just delete all the paragraph tags and then add simple tags to the remaining text.

You'll need to find/replace with a grep expression and a blank replace field.

Try (on a copy!)

<p class="calibre6".*>&nbsp;</p>

which should remove all paragraphs that are just a non-breaking space.
pdurrant is offline   Reply With Quote
Old 03-05-2019, 10:43 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,786
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Everyone of those lines of text has TWO <p tags. The first is your blank line.
Beautify (pretty) using the flower icon and they will become obvious
Remove those, then join the split paragraphs

Search
Code:
([[:alpha:],]["”]*)</p>\s*<p\b[^>]*>([a-z“"])
Replace
Code:
\1 \2
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paragraph Spacing changes from 'word' Johneltin Sigil 18 07-19-2013 07:35 AM
Paragraph spacing Banks ePub 2 08-09-2012 05:24 PM
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 12:43 AM
Nook Paragraph Spacing poppies ePub 3 04-21-2011 12:01 AM
Paragraph spacing jhempel24 Calibre 5 08-24-2010 12:14 AM


All times are GMT -4. The time now is 12:41 PM.


MobileRead.com is a privately owned, operated and funded community.