| 
			
			 | 
		#1 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 52 
				Karma: 38 
				Join Date: Jun 2011 
				
				
				
				Device: Kindle 3 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Calibre Mobi Pagebreak Issue
			 
			
			
			I have been experiencing a problem with mobi files produced by calibre (including latest version) 
		
	
		
		
		
		
		
		
		
		
		
		
	
	At the begining of every chapter I have inserted a pagebreak (<div class="mbppagebreak"></div>, with the correct css). Then, using a kindle 3, the spacing above the chapter header changes drasticly between navigating chapters forward and backward and just flipping a page to the next chapter. Sometimes there is even a code fragment in the upper left corner (like '<mbp:') for no apparent reason. This behaviour can be seen when taking any epub and converting to mobi and using kindle previewer. It seems it can be solved using other software aside from calibre. See thread https://www.mobileread.com/forums/sho...d.php?t=117702. However, I love calibre (THank you so much Kovid Goyal!!), and I imagine there must be a way to solve it using calibre. Maybe and option? a change to calibre? Thanks for any help!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Dont insert a page break like that. Use style="page-break-before:always" on the first element of the new chapter instead.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 52 
				Karma: 38 
				Join Date: Jun 2011 
				
				
				
				Device: Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thank you for responding. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I tried that also. I tried having calibre auto insert before chapter headers. I tried every which way I could think of! (see for example what they tried in the thread mentioned above!) Their solution however, wont work in calibre since it wont recognize the namespace mbp:, or something like that.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			This is caused by a bug in the Kindle renderer. Since the bug is not properly understood (the thread you link to just has a workaround that nobody understands) there's no way to fix it in general. You should report it to Amazon.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 52 
				Karma: 38 
				Join Date: Jun 2011 
				
				
				
				Device: Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Not to complain, but is it possible that the workaround mentioned in the above thread can be added to calibre?
		 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Last edited by burbleburble; 06-02-2011 at 01:24 PM. Reason: Didn't see the new reply  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It is not clear in exactly what circumstances the workaround works, or why it works, which is why it cannot be used in a general purpose converter like calibre.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 52 
				Karma: 38 
				Join Date: Jun 2011 
				
				
				
				Device: Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Ok, Thanks! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	One more question- I tried using the workaround myself. but when I added <mbp  agebreak> to the file, and calibre began converting it to mobi, it ignored that line with an error (along the lines of): 'unknown namespace: mbp', is there a way to code the html to avoid this error? (so that this line will exist in the mobi output instead of being ignored)
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			No, there isn't. calibre expects HTML to be HTML not MOBI pseudo-code.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Tags | 
| calibre, mobi, pagebreak | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| What's the issue? rtf => mobi | penguinaka | Conversion | 3 | 05-01-2011 10:36 AM | 
| Issue using Calibre to convert from EPUB to MOBI | TravellingTwo | Conversion | 1 | 04-10-2011 02:12 PM | 
| pdf to mobi conversion issue | dkritso109 | Calibre | 16 | 10-08-2010 07:10 AM | 
| Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) | David Derrico | Calibre | 5 | 08-04-2010 01:13 AM | 
| Detect Mobi pocket pagebreak in calibre 0.4.99 | Icarusbop | Calibre | 5 | 10-24-2008 04:12 AM |