mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Formatting
This commit is contained in:
parent
c00c253d65
commit
a2702d99c2
@ -81,7 +81,6 @@
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name = "para-content">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
@ -182,14 +181,12 @@
|
||||
|
||||
<xsl:template match="rtf:operator|rtf:editing-time|rtf:number-of-pages|rtf:number-of-words|rtf:number-of-characters"/>
|
||||
|
||||
|
||||
<xsl:template match="rtf:title">
|
||||
<xsl:element name="title">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="html-head">
|
||||
<title>unnamed</title>
|
||||
<link rel="stylesheet" type="text/css" href="styles.css"/>
|
||||
@ -386,7 +383,6 @@
|
||||
|
||||
<xsl:key name="style-types" match="rtf:paragraph-definition" use="@style-number"/>
|
||||
|
||||
|
||||
<xsl:variable name = "delete-list-text">true</xsl:variable>
|
||||
<xsl:variable name = "delete-field-blocks">true</xsl:variable>
|
||||
<xsl:variable name = "delete-annotation">false</xsl:variable>
|
||||
|
@ -141,7 +141,6 @@ class RTFInput(InputFormatPlugin):
|
||||
|
||||
return name
|
||||
|
||||
|
||||
def write_inline_css(self, ic):
|
||||
font_size_classes = ['span.fs%d { font-size: %spt }'%(i, x) for i, x in
|
||||
enumerate(ic.font_sizes)]
|
||||
@ -152,17 +151,11 @@ class RTFInput(InputFormatPlugin):
|
||||
text-decoration: none; font-weight: normal;
|
||||
font-style: normal; font-variant: normal
|
||||
}
|
||||
|
||||
span.italics { font-style: italic }
|
||||
|
||||
span.bold { font-weight: bold }
|
||||
|
||||
span.small-caps { font-variant: small-caps }
|
||||
|
||||
span.underlined { text-decoration: underline }
|
||||
|
||||
span.strike-through { text-decoration: line-through }
|
||||
|
||||
''')
|
||||
css += '\n'+'\n'.join(font_size_classes)
|
||||
css += '\n' +'\n'.join(color_classes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user