mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Replace entities in all cases.
This commit is contained in:
		
							parent
							
								
									d5bd948404
								
							
						
					
					
						commit
						6c40b0149e
					
				@ -378,6 +378,9 @@ class HTMLConverter(object):
 | 
				
			|||||||
                        text += c['alt']
 | 
					                        text += c['alt']
 | 
				
			||||||
                        return text
 | 
					                        return text
 | 
				
			||||||
                    text += self.get_text(c)
 | 
					                    text += self.get_text(c)
 | 
				
			||||||
 | 
					            if text:
 | 
				
			||||||
 | 
					                for rule, sub in self.__class__.ENTITY_RULES:
 | 
				
			||||||
 | 
					                    text = rule.sub(sub, text)
 | 
				
			||||||
            return text
 | 
					            return text
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    def process_links(self, is_root, selfpath, link_level=0):
 | 
					    def process_links(self, is_root, selfpath, link_level=0):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user