mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	AZW3 Output: Do not refuse to create the ToC if it has only a single entry
This commit is contained in:
		
							parent
							
								
									a67fe73a30
								
							
						
					
					
						commit
						d1023efd1e
					
				@ -331,7 +331,7 @@ class KF8Writer(object):
 | 
				
			|||||||
        toc = self.oeb.toc
 | 
					        toc = self.oeb.toc
 | 
				
			||||||
        entries = []
 | 
					        entries = []
 | 
				
			||||||
        is_periodical = self.opts.mobi_periodical
 | 
					        is_periodical = self.opts.mobi_periodical
 | 
				
			||||||
        if toc.count() < 2:
 | 
					        if toc.count() < 1:
 | 
				
			||||||
            self.log.warn('Document has no ToC, MOBI will have no NCX index')
 | 
					            self.log.warn('Document has no ToC, MOBI will have no NCX index')
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user