View Single Post
Old 09-19-2020, 07:59 PM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,165
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by artbum View Post
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?
If you want to get rid of the extra line feeds that Beautify adds then this regex search and replace will do it in a couple of seconds.

search:
Code:
\n\n  <(.*?) class=
replace:
Code:
\n<\1 class=
Set mode to Regex--All text Filles
Them press Replace All

bernie

P.S.
The return does not add a paragraph it adds a line feed.
Code:
\n
gbm is offline   Reply With Quote