![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2020
Device: Pages, Calibre
|
Calibre Editor: return not to make new paragraph?
Sorry for the clunky title. What I was trying to say:
In the Editor, I hit Beautify so I can see the code of course. Epub file generated from Apple Pages. But now it adds paragraphs every time there's a return. It's taking me forever to delete all of those unwanted blank paragraphs and I have to do it to 2 more books. Yes, I added a blank paragraph in Pages to separate the paragraphs with white space. So is there a setting in the Calibre Editor preferences or something that says "Return makes new paragraphs" that I can turn off? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Blank lines in Code view are not 'Paragraphs'. (They just make it easier to read code. The render engines ignore those because a Paragraph is always between a tag pair. Another thing render engines tend to ignore is repeated spaces (there were 5 between those words)
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,165
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
search: Code:
\n\n <(.*?) class= Code:
\n<\1 class= Them press Replace All bernie P.S. The return does not add a paragraph it adds a line feed. Code:
\n |
|
![]() |
![]() |
![]() |
#4 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 443
Karma: 3367292
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
If that is the case, just search for the <p class="whatever"></p> string and replace with nothing. Use replace all, all text files, to do it in a second. The downside might be, if you also used simple, multiple returns to make scene breaks, it will clobber those as well. If that is the case, find the scene breaks first and put something else there, like <p class="whatever">***</p> |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2020
Device: Pages, Calibre
|
ok yeah, they are not technically paragraphs but more like extra white space between actual paragraph tags. I did a combination of brute force delete and using the find/replace. thanks
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2020
Device: Pages, Calibre
|
Ok solved it.
Extra line spaces between paragraphs. Changed white-space:normal instead of “pre-wrap” as it was before in every xhtml page. Then class margin-top to 1.5em. Now no matter how many times I hit return, it won't add breaks (and white space) between paragraphs in the preview and more importantly, in Google Play Books. (looked fine in Apple iBooks). btw I had said that "I added a blank paragraph in Pages to separate the paragraphs with white space." But that was an early file, the latest I was using had no extra returns. I had done it the right way: Space after paragraph. And it was still adding white space. But now I know why. ![]() |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2020
Device: Pages, Calibre
|
oh. Just realized I can just triple-click to delete the whole line:
<div class="body" style="white-space ![]() I guess it was added by Pages. |
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,005
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
Tags |
paragraphs |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Should I return the Onyx Note Pro? Did I make a mistake passing up the Note? | qwert | Onyx Boox | 4 | 06-19-2019 07:34 AM |
Calibre paragraph spacing | ebookscovers | Conversion | 4 | 02-01-2018 09:37 PM |
Use Editor to Make AZW Periodicals? | jesse s | Editor | 7 | 09-08-2016 10:23 AM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |