|  03-31-2025, 05:02 PM | #1 | 
| Addict            Posts: 278 Karma: 50000 Join Date: May 2014 Device: Kobo Libra 2 | 
				
				Searching within stylesheet.css?
			 
			
			Is there a way to search through the stylesheet for certain elements? For instance, I have a book where the author decided that everything needed lots of space between the lines. So I want to search stylesheet.css for 'line-height' and delete those lines. But the Calibre Editor says that "No matches were found". Anyone know how to accomplish this? | 
|   |   | 
|  03-31-2025, 05:18 PM | #2 | 
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | 
			
			Tools -> Filter style
		 | 
|   |   | 
| Advert | |
|  | 
|  03-31-2025, 05:21 PM | #3 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  03-31-2025, 05:51 PM | #4 | 
| Addict            Posts: 278 Karma: 50000 Join Date: May 2014 Device: Kobo Libra 2 | |
|   |   | 
|  03-31-2025, 05:52 PM | #5 | 
| Addict            Posts: 278 Karma: 50000 Join Date: May 2014 Device: Kobo Libra 2 | |
|   |   | 
| Advert | |
|  | 
|  03-31-2025, 05:57 PM | #6 | 
| Connoisseur            Posts: 57 Karma: 2024 Join Date: Apr 2011 Location: Southern Idaho Device: Samsung Galaxy Tabs | 
			
			I just had a book that had a <p class> with a hidden space between each normal paragraph. Which then changed every few chapters. So, you might have this problem too. You have to search for these code(s) and leave the replace with a blank. | 
|   |   | 
|  03-31-2025, 06:06 PM | #7 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | 
			
			For future reference, all you need to do is change the search mode to "All style files". See image... | 
|   |   | 
|  03-31-2025, 06:10 PM | #8 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 | |
|   |   | 
|  04-01-2025, 10:16 AM | #9 | 
| Addict            Posts: 278 Karma: 50000 Join Date: May 2014 Device: Kobo Libra 2 | |
|   |   | 
|  04-01-2025, 10:17 AM | #10 | 
| Addict            Posts: 278 Karma: 50000 Join Date: May 2014 Device: Kobo Libra 2 | |
|   |   | 
|  04-01-2025, 01:02 PM | #11 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
  Get yourself a REGEX cheat sheet. The majority of my REGEX is basic level with a few intermediate  My Kobo hates letter spacing (OK I hate the results) This is the simple REGEX I use to find book I have not fixed. Code: \s\s\sletter-spacing Code: \* letterspacing: the value; *\ | |
|   |   | 
|  04-04-2025, 05:46 PM | #12 | |
| Wizard            Posts: 1,216 Karma: 1995558 Join Date: Aug 2015 Device: Kindle | Quote: 
 See the attached picture | |
|   |   | 
|  04-04-2025, 06:18 PM | #13 | 
| Zealot     Posts: 146 Karma: 338 Join Date: Nov 2004 Device: Ebookwise 1150, Jetbook Lite, Slick Er-701 | 
			
			Sometimes the Calibre Editor doesn’t search the way you’d expect. You might try opening your stylesheet in a different text editor like Notepad++ or Sublime Text.
		 | 
|   |   | 
|  04-08-2025, 10:43 AM | #14 | 
| Addict            Posts: 278 Karma: 50000 Join Date: May 2014 Device: Kobo Libra 2 | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Linking to CSS stylesheet | mossman26 | Sigil | 2 | 07-16-2020 02:38 PM | 
| pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM | 
| stylesheet.CSS anyone? | ProDigit | ePub | 81 | 12-26-2015 01:43 PM | 
| Converting cm to em in css stylesheet | roger64 | ePub | 41 | 06-13-2014 01:00 PM | 
| Where is the stylesheet.css? | roger64 | Sigil | 4 | 03-23-2010 02:12 PM |