mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	sigh
This commit is contained in:
		
							parent
							
								
									8ff5c69cec
								
							
						
					
					
						commit
						a237f3aa8f
					
				@ -369,9 +369,8 @@ OptionRecommendation(name='remove_paragraph_spacing_indent_size',
 | 
			
		||||
        help=_('When calibre removes blank lines between paragraphs, it automatically '
 | 
			
		||||
            'sets a paragraph indent, to ensure that paragraphs can be easily '
 | 
			
		||||
            'distinguished. This option controls the width of that indent (in em). '
 | 
			
		||||
            'If you set this value to 0, then the indent specified in the input '
 | 
			
		||||
            'document is used, unless you also set the insert line between '
 | 
			
		||||
            'paragraphs option.')
 | 
			
		||||
            'If you set this value negative, then the indent specified in the input '
 | 
			
		||||
            'document is used, that is, calibre does not change the indentation.')
 | 
			
		||||
        ),
 | 
			
		||||
 | 
			
		||||
OptionRecommendation(name='prefer_metadata_cover',
 | 
			
		||||
 | 
			
		||||
@ -321,7 +321,7 @@ class CSSFlattener(object):
 | 
			
		||||
                cssdict['margin-top'] = cssdict['margin-bottom'] = \
 | 
			
		||||
                    '%fem'%self.context.insert_blank_line_size
 | 
			
		||||
            indent_size = self.context.remove_paragraph_spacing_indent_size
 | 
			
		||||
            keep_indents = indent_size == 0.0 and not self.context.insert_blank_line
 | 
			
		||||
            keep_indents = indent_size < 0.0
 | 
			
		||||
            if (self.context.remove_paragraph_spacing and not keep_indents and
 | 
			
		||||
                cssdict.get('text-align', None) not in ('center', 'right')):
 | 
			
		||||
                cssdict['text-indent'] =  "%1.1fem" % indent_size
 | 
			
		||||
 | 
			
		||||
@ -84,7 +84,7 @@
 | 
			
		||||
        <string>...</string>
 | 
			
		||||
       </property>
 | 
			
		||||
       <property name="icon">
 | 
			
		||||
        <iconset>
 | 
			
		||||
        <iconset resource="../../../../resources/images.qrc">
 | 
			
		||||
         <normaloff>:/images/wizard.png</normaloff>:/images/wizard.png</iconset>
 | 
			
		||||
       </property>
 | 
			
		||||
       <property name="iconSize">
 | 
			
		||||
@ -225,12 +225,21 @@
 | 
			
		||||
     <property name="toolTip">
 | 
			
		||||
      <string><p>When calibre removes inter paragraph spacing, it automatically sets a paragraph indent, to ensure that paragraphs can be easily distinguished. This option controls the width of that indent.</string>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="specialValueText">
 | 
			
		||||
      <string>No change</string>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="suffix">
 | 
			
		||||
      <string> em</string>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="decimals">
 | 
			
		||||
      <number>1</number>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="minimum">
 | 
			
		||||
      <double>-0.100000000000000</double>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="singleStep">
 | 
			
		||||
      <double>0.100000000000000</double>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="6" column="3">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user