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