mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Add Todo to FB2MLizer.
This commit is contained in:
		
							parent
							
								
									ca89801730
								
							
						
					
					
						commit
						3216eccce7
					
				@ -54,6 +54,13 @@ STYLES = [
 | 
				
			|||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class FB2MLizer(object):
 | 
					class FB2MLizer(object):
 | 
				
			||||||
 | 
					    '''
 | 
				
			||||||
 | 
					    Todo: * Ensure all style tags are inside of the p tags.
 | 
				
			||||||
 | 
					          * Include more FB2 specific tags in the conversion.
 | 
				
			||||||
 | 
					          * Handle reopening of a tag properly.
 | 
				
			||||||
 | 
					          * Figure out some way to turn oeb_book.toc items into <section><title>
 | 
				
			||||||
 | 
					            <p> to allow for readers to generate toc from the document.
 | 
				
			||||||
 | 
					    '''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, log):
 | 
					    def __init__(self, log):
 | 
				
			||||||
        self.log = log
 | 
					        self.log = log
 | 
				
			||||||
@ -285,7 +292,6 @@ class FB2MLizer(object):
 | 
				
			|||||||
            else:
 | 
					            else:
 | 
				
			||||||
                fb2_text.append(prepare_string_for_xml(elem.tail))
 | 
					                fb2_text.append(prepare_string_for_xml(elem.tail))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        #print fb2_text
 | 
					 | 
				
			||||||
        return fb2_text
 | 
					        return fb2_text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def close_tags(self, tags):
 | 
					    def close_tags(self, tags):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user