| 
			
			 | 
		#1 | 
| 
			
			
			
			 Bookmaker 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 434 
				Karma: 2143650 
				Join Date: Sep 2010 
				
				
				
				Device: Cybook Opus 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Find/Replace Adds New Styles?
			 
			
			
			For some reason, in addition to my normal find/replace woes involving HTML entities, using Find/Replace on all HTML pages seems to frequently add: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } to the <style> section at the top of the code. Doing more replaces adds additional blank lines to the section until I have a huge empty space at the top of every page. HTML Tidy doesn't fix it (Tidy hasn't seemed to do much even when it's supposedly on since the new version hit.) What's up with that?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | ||
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			First what version are you using? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Quote: 
	
 Quote: 
	
 I have noticed the blank lines too. I don't recall when, but it seems to me that the blank lines are an illusion, if you click in the code view everything should update and you will see your normal page.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Bookmaker 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 434 
				Karma: 2143650 
				Join Date: Sep 2010 
				
				
				
				Device: Cybook Opus 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			This part might be true; it could be some other program I'm using that insists on adding that string (Calibre could well be at fault). 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | ||
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Quote: 
	
 I guess someone more knowledgeable will have to answer this. If tidy wasn't doing anything when I replace <p> with <h2> I would have to change all of the backend tags and I definitely don't have to do that.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520 
				Karma: 121692313 
				Join Date: Oct 2009 
				Location: Heemskerk, NL 
				
				
				Device: PRS-T1, Kobo Touch, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I have an @page in my stylesheet, but do not increase each page. I did find out that the iBooks program doesn't like the @page and act strange on it.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387 
				Karma: 3102 
				Join Date: Dec 2010 
				Location: EU 
				
				
				Device: Kobo Aura ONE, Kobo Libra H20 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I do that a lot too, but have noticed that tidy usually adds a <br> tag before the closing <h2> tag. Not that it alters the format of the book. Last edited by paulfiera; 10-03-2011 at 11:05 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| RegEx find and replace | iblesq | Sigil | 1 | 01-10-2011 10:26 PM | 
| Find / replace | bremler | Sigil | 6 | 12-17-2010 04:26 PM | 
| REGEX find and replace help please | potestus | Sigil | 13 | 09-18-2010 05:14 PM | 
| Crashes on find / replace all | mr ploppy | Sigil | 1 | 02-03-2010 01:35 PM | 
| Using Find/Replace with BD | Otter | Sony Reader | 7 | 02-28-2009 02:49 PM |