mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	DOCX Input: Specify zero default margins for headings
DOCX Input: Fix extra top/bottom margins around headings when the heading style in word does not specify any top/bottom margins.
This commit is contained in:
		
							parent
							
								
									255fcce9e5
								
							
						
					
					
						commit
						7a4f87b992
					
				@ -437,7 +437,8 @@ class Styles(object):
 | 
				
			|||||||
            '''\
 | 
					            '''\
 | 
				
			||||||
            body { font-family: %s; font-size: %s; color: %s }
 | 
					            body { font-family: %s; font-size: %s; color: %s }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            ul, ol, p { margin: 0; padding: 0 }
 | 
					            /* In word all paragraphs have zero margins unless explicitly specified in a style */
 | 
				
			||||||
 | 
					            ul, ol, p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0 }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            sup.noteref a { text-decoration: none }
 | 
					            sup.noteref a { text-decoration: none }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user