09-12-2018, 06:46 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Searching for empty paragraph
Hi
I am probably doing something wrong. I am looking for all empty paragraphs left in my book to destroy them. I copy one of them from the code page. Code:
<p> </p> Code:
<p>\ </p> If I use Sigil to search for Code:
<p>&#_160;</p> I would like to obtain the same result with the Calibre editor. |
09-12-2018, 07:22 AM | #2 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Try:
Code:
<p>\s</p> |
Advert | |
|
09-12-2018, 08:18 AM | #3 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Run the Beautify Files function within Calibre before doing searches. This will fix the problem you're having.
|
09-12-2018, 10:25 AM | #4 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I had done it before. Got the same result: only item found from the current file.
|
09-12-2018, 10:47 AM | #5 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's a non-breaking space. Search for
<p>\xa0</p> |
Advert | |
|
09-12-2018, 12:32 PM | #6 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
09-12-2018, 12:47 PM | #7 |
Well trained by Cats
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
09-12-2018, 02:34 PM | #8 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
09-12-2018, 06:10 PM | #9 |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@roger64 - did you try the suggestion in post #3
BR |
09-12-2018, 06:13 PM | #10 |
Well trained by Cats
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
09-12-2018, 10:03 PM | #11 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
09-13-2018, 01:41 AM | #12 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Yes, I shall prepare one asap.
|
09-13-2018, 08:18 AM | #13 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I'm in the habit of hitting the Beautify Files icon before I search for anything, because if I don't do that, most of the time the search function will not find what I'm looking for. Have you tried my suggestion yet?
|
09-13-2018, 08:32 AM | #14 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
Thank you for a practical solution. I also had seen that if I "scrambled" the ePub, the scrambled version did not suffer anymore from this defect. But the resulting ePub was of course unusable. Good to know anyway, again thanks. Note: I sent the "guilty" ePub to Kovid Goyal but could not publish it here. Maybe he will be able to tell us what disturb the Calibre editor for this particular search. Last edited by roger64; 09-13-2018 at 09:15 AM. Reason: disturb |
|
09-13-2018, 11:01 AM | #15 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
This solution should be added to the instructions for the Search function. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Searching for empty entries | reluniks | Calibre | 2 | 11-12-2016 02:29 PM |
Searching for empty | tadas | Library Management | 2 | 04-20-2015 12:14 AM |
Empty space in Paragraph | odedta | ePub | 11 | 12-27-2014 09:18 AM |
How detelete empty paragraph? | cyttorak | Recipes | 2 | 11-27-2014 02:41 AM |
Searching for empty tags | iain_benson | Calibre | 2 | 01-27-2009 05:04 PM |